#community-help

Bug in Phrase Search with Double Quotes

TLDR Sachyya reports a bug where text_match score and tie breaker field are ignored in phrase search. Kishore Nallan suggests using a recent 0.25 RC build, providing the download link.

Powered by Struct AI
Apr 20, 2023 (8 months ago)
Sachyya
Photo of md5-3b78e17280dd19e5eca44e22ee940b76
Sachyya
09:59 AM
We have a site setup where we are querying by like this: query_by: post_content, cad_tags, speaker, speaker_referred, countries, articles If we search for Gandalf, it works for any word case with text_match score being respected. But in case of exact word, it does not respect the text_match score nor the tie breaker for the sequence of query_by fields listed above. For exact word case, we are wrapping query with double quotes.

In the test case, if you search for Gandalf, it is mentioned 3 times in Historical Constitutions | Government of India Act, 1919 but it's not showing first in the search list. Does the text_match and tie breaker field ignored when searched with query being wrapped in double quotes.

Test site: https://cadcodemanas.redstart.dev/search-with-typesense/
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:10 AM
We noticed a bug that prevented phrase search (wrapping with quotes) ignore the field ordering. Fixed in recent 0.25 RC builds.
Sachyya
Photo of md5-3b78e17280dd19e5eca44e22ee940b76
Sachyya
10:13 AM
We are using 0.25.0.rc15 at the moment. Where and how do I download the 0.25 recent RC build.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:14 AM
What do you use for deployment? You need docker or binary tar gz?
Sachyya
Photo of md5-3b78e17280dd19e5eca44e22ee940b76
Sachyya
10:14 AM
We were provided .deb file last time for local setup. Is that possible?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:50 AM
Yes here's latest deb:

Sachyya
Photo of md5-3b78e17280dd19e5eca44e22ee940b76
Sachyya
11:05 AM
Thanks. Testing it now.