Skip to content

Boost search ranking for hub pages by nav level - #160

Draft
hywel-mixpanel wants to merge 2 commits into
mainfrom
tof-396-boost-search-ranking-by-nav-level
Draft

Boost search ranking for hub pages by nav level#160
hywel-mixpanel wants to merge 2 commits into
mainfrom
tof-396-boost-search-ranking-by-nav-level

Conversation

@hywel-mixpanel

@hywel-mixpanel hywel-mixpanel commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Hub pages rank below their own children in docs search. Relevance scoring normalizes by field length, so "SDKs: Send data from your application into Mixpanel" loses the query SDKs to twelve children titled "Mixpanel SDKs: <language>" — the parent has more body mentions and still loses. Adds frontmatter boost 3 to sidebar level 1 pages and 2 to level 2 across Docs and Guides, so hubs outrank descendants with no visible change to any page.

Excludes API Docs, whose group roots are endpoint pages that would then beat conceptual docs, plus changelogs and FAQs.

Test / Rollout plan

  • After deploy, search SDKsTracking Methods > SDKs should now appear above the per-language pages.
  • Search autocaptureTracking Methods > Autocapture should beat Quickstart > Capture Events > Autocapture.
  • Search cohorts, events, funnels — API reference pages should be unchanged.
  • Search lexicon — expect this to look worse; docs/cohort-sync is level 1 and carries a From Lexicon tab. Fixed separately by demoting the Cohort Sync group.
  • Watch docs search click-through rate and mean clicked position in Mixpanel.
  • Rollback: revert this commit.

@linear-code

linear-code Bot commented Aug 11, 2026

Copy link
Copy Markdown

TOF-396

@greptile-apps

greptile-apps Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Too many files changed for review (148 files, 100 file limit).

Bypass the limit by tagging @greptile-apps to review.

Search ranked hub pages below their own children because relevance
scoring normalizes by field length: "SDKs: Send data from your
application into Mixpanel" scores worse for "SDKs" than the twelve
child pages titled "Mixpanel SDKs: <language>". Adds frontmatter
boost 3 to sidebar level 1 pages and boost 2 to level 2 across Docs
and Guides, so a hub outranks its descendants without changing any
visible title. API Docs, changelogs and FAQs are excluded.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@hywel-mixpanel
hywel-mixpanel force-pushed the tof-396-boost-search-ranking-by-nav-level branch from 490f56f to 2545eec Compare August 11, 2026 22:57
@hywel-mixpanel
hywel-mixpanel changed the base branch from tof-396-remove-unsupported-tags-frontmatter to main August 11, 2026 22:57
Shortens the title from "Lexicon: Describe your events and data using
a dictionary" to "Lexicon" and moves the clause into description, which
Mintlify renders as a visible subtitle beneath the H1. Relevance scoring
normalizes by field length, so "lexicon" now matches the full title
rather than one word of eight. Reader-visible text is unchanged in
wording and order.

Trial run for a house-style pattern used by 77 pages in docs/ and
guides/; not yet applied more broadly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant