Skip to content

Implement result scoring (including annotation) on sqlite#85

Open
gasman wants to merge 1 commit intowagtail:mainfrom
gasman:feature/sqlite-ranking
Open

Implement result scoring (including annotation) on sqlite#85
gasman wants to merge 1 commit intowagtail:mainfrom
gasman:feature/sqlite-ranking

Conversation

@gasman
Copy link
Copy Markdown
Contributor

@gasman gasman commented Mar 10, 2026

Replaces #68, fixes #46

Description

Implements order by relevance on Sqlite, copying the approach from the Mysql backend (annotating the inner "select object IDs from index entries" query with score, then using Subquery/OuterRef to make that available to the outer query).

The test case from #68 (comment) takes several minutes to complete, but it does complete successfully.

AI usage

Gtihub Copilot for code completion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

annotate_score does not work on SQLite FTS backend

1 participant