Add search weighting and ranking documentation#4593
Merged
Conversation
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1774630820-search-weighting-docs.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
…74630820-search-weighting-docs
devalog
approved these changes
Mar 27, 2026
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
…rst-ranked Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new "How results are ranked" section to the existing Search configuration page, documenting how Fern's Algolia DocSearch weighs and ranks search attributes. This was requested by a customer who wanted transparency into search behavior.
The new section uses an
AccordionGroupwith four expandable panels:allOptionalfallback and which terms are treated as optionalAlso updates the page's meta description. The attribute weighting and ranking details were derived from the actual Algolia configuration in
fern-platform(set-index-settings.tsandtypes.ts).Updates since last revision
AccordionGrouplayout.Review & Testing Checklist for Human
SEARCHABLE_ATTRIBUTESintypes.tsliststitlefirst. Confirm whether the Algolia config is being updated to match, or if the docs should reflect the current config order./learn/docs/configuration/page-level-settings#document-properties,/learn/docs/configuration/page-level-settings#title,/learn/docs/writing-content/markdown-basics#page-header, and/learn/docs/writing-content/components/code-blocks.Suggested test plan: Open the preview link, expand each accordion, click each internal link, and confirm the table renders with correct priority ordering.
Notes
fern-platformchanges, this page will need a corresponding update.2026-03-27.mdx) was added in an earlier commit.Link to Devin session: https://app.devin.ai/sessions/c8f263074a264d729af53cbab8b8b5b0
Requested by: @devalog