Contribution Date
Contribution Project
Contribution Details
Analyse free-text queries the way the blob is indexed (find DSC_0043)
render_text split the query on whitespace and lowercased by hand, so a
punctuated word became one term — `dsc_0043` — that the index never
holds: the blob indexes `DSC_0043.jpg` as the tokens `dsc` and `0043`.
Run the query through the same built-in `default` analyser the blob uses,
so one clean word stays one term (unchanged for `beach`) and a punctuated
or quoted input becomes a phrase over its tokens. Adds a differential
fixture (`beach-holiday` as free text) that diverges from SQL's substring
match without this and agrees with it after.
Contribution Issue Link
Files count
0
Patches count
1