Skip to content

fix: match files to scenes whose titles contain apostrophes#2229

Open
tankxbvr wants to merge 1 commit into
xbapps:masterfrom
tankxbvr:fix/match-apostrophes
Open

fix: match files to scenes whose titles contain apostrophes#2229
tankxbvr wants to merge 1 commit into
xbapps:masterfrom
tankxbvr:fix/match-apostrophes

Conversation

@tankxbvr

Copy link
Copy Markdown

When matching an unmatched file to a scene, filenames containing apostrophes never scored well against scene titles that have them.

The title index analyzer splits on apostrophes, so a possessive like Foo's is stored as two tokens (foo + s). A query that keeps the apostrophe (Foo's) or drops it to a single word (Foos) never lines up with those tokens, whereas Foo s (apostrophe → space) matches exactly.

Fix: normalize apostrophes (straight ', curly , backtick) to spaces before building the bleve query — this helps the match box, quick search, and manual search alike. The match-box query builder is also updated to turn apostrophes into spaces, and drops an old " s " → "'s " reconstruction that was adding apostrophes that hurt matching.

@tankxbvr
tankxbvr force-pushed the fix/match-apostrophes branch from c044385 to 0249f97 Compare July 18, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant