Skip to content

feat(store): prefer content matches in document search - #746

Merged
wesm merged 1 commit into
mainfrom
pr/content-first-search
Oct 4, 2026
Merged

wesm merged 1 commit into
mainfrom
pr/content-first-search

Conversation

@rodboev

@rodboev rodboev commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

HTTP and embedded Go callers can set content_first to 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.

Default search with synthetic documents

Implements the transcript-first search option from #240.

@roborev-ci

roborev-ci Bot commented Sep 30, 2026

Copy link
Copy Markdown

roborev: Combined Review (003119c)

Verdict: No findings at or above medium severity.


Reviewers: codex, codex (security) | Synthesis: codex | Total: 6m28s

@rodboev
rodboev added this pull request to stack #752 October 1, 2026 23:42
Base automatically changed from pr/240-8-transcript-read to main October 2, 2026 13:06
@wesm wesm self-assigned this Oct 3, 2026
@wesm

wesm commented Oct 3, 2026

Copy link
Copy Markdown
Member

rebasing

@wesm
wesm force-pushed the pr/content-first-search branch from 003119c to 7f22ff2 Compare October 3, 2026 17:02
@roborev-ci

roborev-ci Bot commented Oct 3, 2026

Copy link
Copy Markdown

roborev: Combined Review (7f22ff2)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 7m14s

@wesm
wesm force-pushed the pr/content-first-search branch from 7f22ff2 to adbff91 Compare October 3, 2026 19:08
@roborev-ci

roborev-ci Bot commented Oct 3, 2026

Copy link
Copy Markdown

roborev: Combined Review (adbff91)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex, 5s | Total: 6m47s

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
wesm force-pushed the pr/content-first-search branch from adbff91 to 7f4230c Compare October 3, 2026 23:54
@roborev-ci

roborev-ci Bot commented Oct 3, 2026

Copy link
Copy Markdown

roborev: Combined Review (7f4230c)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 2m1s

@wesm
wesm merged commit 7fbb921 into main Oct 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants