Inconsistent Search Results with Additional Keyword
TLDR Yuhong experiences inconsistent search results with the inclusion of an additional keyword. Kishore Nallan suggests trying prefix: false
, but the issue persists.
Jun 17, 2023 (5 months ago)
Yuhong
02:08 AMXYZ15
I get the following results but when I search for XYZ15 clinical
, I only get the first result? I'm searching the same field, the only thing is this additional keyword that also appears in the text. I can't make sense of it at allKishore Nallan
04:15 AMXYZ15
that word is treated as prefix, but in XYZ15 clinical
the word clinical
is treated as prefix. So this can change the results that are fetched. Can you try with prefix: false
just to see what happens to both the queries?Yuhong
05:56 AM{'filter_by': 'allowed_users:=PUBLIC', 'limit_hits': 50, 'num_typos': 2, 'per_page': 50, 'prefix': False, 'q': 'XYZ15 clinical', 'query_by': 'content'}
and I'm only changing the 'q' between the searches
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Understanding Search Result Variations with Filtering Parameters
SamHendley faced inconsistencies in the number of documents returned when adding more filter parameters. Jason explained it's due to Typesense limiting the number of variables checked for better performance. Increasing `max_candidates` or enabling `exhaustive_search` can help obtain all values.
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.
Issue with Typo Correction/Prefix Search and the Role of max_candidates
John noticed inconsistent search results based on max_candidates settings, and Kishore Nallan clarified its role for multi-word queries. They resolved that increasing max_candidates ensures the query isn't prematurely limited.