Repository navigation
Include Tags in Search Relevance Score - #63
Conversation
Co-authored-by: egeozcan <185294+egeozcan@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
… tag edits drop cached scores - calculateRelevanceScore returned on the first matching extra field, so a later exact tag lost to an earlier substring one; take the best. - Preload Tags only on the LIKE path; the FTS path ranks by position and never read them. - Scores now depend on tag names, so tag rename/delete/merge invalidate the cached resource, note and group results as well as tag results. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Review (base was already current master; no port needed). Fixed in 22f788d (red tests first):
Not changed, for the owner to decide:
Checked: Scan is not used (Find with preload, so subtree scope applies); preload is one extra query per type over at most 1000 ids (no N+1); hyphenated terms use the raw term on the LIKE path. SQLite and Postgres api_tests and full go unit tests pass. |
Thank you for the review! I have updated |
Co-authored-by: egeozcan <185294+egeozcan@users.noreply.github.com>
Modifies
entityExtraTextinsearch.goto return a slice of strings, including preloaded tag names for resources, groups, and notes, enablingcalculateRelevanceScoreto properly evaluate tag matches and avoid yielding a score of 0. Also adds a unit test insearch_tags_score_test.goto cover this behavior.PR created automatically by Jules for task 6184606490733995593 started by @egeozcan