Repository navigation
feat(store): prefer content matches in document search - #746
Merged
Merged
Conversation
roborev: Combined Review (
|
Member
|
rebasing |
wesm
force-pushed
the
pr/content-first-search
branch
from
October 3, 2026 17:02
003119c to
7f22ff2
Compare
roborev: Combined Review (
|
wesm
force-pushed
the
pr/content-first-search
branch
from
October 3, 2026 19:08
7f22ff2 to
adbff91
Compare
roborev: Combined Review (
|
Let HTTP and embedded Go callers rank document and transcript evidence ahead of matching filenames. Content excerpts remain visible when a filename also matches, and filename-only matches fill the remaining slots. Keep filename-first ordering when the preference is omitted or false. Reuse the existing search index and source filters. - refactor(search): separate ranking preferences from source filters Generated with Codex Co-authored-by: Codex <noreply@openai.com> Co-authored-by: Wes McKinney <wesmckinn+git@gmail.com>
wesm
force-pushed
the
pr/content-first-search
branch
from
October 3, 2026 23:54
adbff91 to
7f4230c
Compare
roborev: Combined Review (
|
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.
HTTP and embedded Go callers can set
content_firstto rank document and transcript matches ahead of matching filenames. A page of similarly named recordings can then show the relevant spoken text, including when the recording's filename also matches.Content matches fill the page first, and filename-only matches fill the remaining slots. Both use the same source filters. Omitting the flag or setting it to false preserves filename-first ordering. Hybrid search uses the preferred lexical ranks alongside vector ranks; semantic search is unchanged, and optional reranking can reorder the selected results.
The option uses the existing search index and is available through HTTP and embedded Go requests. CLI and MCP exposure are outside this PR's scope.
Implements the transcript-first search option from #240.