Querying and Performance in Typesense
TLDR Chris had a problem with a Typesense query not returning a match. Jason solved the issue by suggesting the exhaustive_search
feature. Further performance and features of Typesense were also discussed.
1
1
1
Jun 30, 2023 (3 months ago)
Chris
12:00 AMChris
12:03 AM{'q': 'quick todos', 'query_by': 'content', 'per_page': 50, 'limit_hits': 50, 'num_typos': 2, 'prefix': 'false'}
One doc indexed into Typesense has the following content:
Fast TODOs...
(there are also 1-2 other docs that somewhat match this query, but for the sake of this example, I'm focused on the Fast TODOs doc). This doc is not returned as a match. Is this expected behavior? If so, is there any way to make these partial matches get returned in the case of no better match being found?NOTE: with
{'q': 'todos', ...}
the doc is returned as expectedJason
12:06 AMhttps://typesense-community.slack.com/archives/C01P749MET0/p1687882851838579
Jason
12:07 AMChris
12:12 AM1
Chris
12:13 AMJason
12:14 AM1
Chris
12:29 AMAnother qq: what's the reasoning for using both
exhaustive_search
and drop_tokens_threshold
? The docs mention that drop_tokens_threshold
is ignored if exhaustive_search
is turned onJason
12:54 AMexhaustive_search: true
should suffice1
Typesense
Indexed 2779 threads (79% resolved)
Similar Threads
Understanding Indexing and Search-As-You-Type In Typesense
Steven had queries about indexing and search-as-you-type in Typesense. Jason clarified that bulk updates are faster and search-as-you-type is resource intensive but worth it. The discussion also included querying benchmarks and Typesense's drop_tokens_threshold parameter, with participation from bnfd.
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.
Improving Typesense Query Performance
Jonathan queried about slower than expected typesense query performance. Jason and Kishore Nallan offered solutions and explanations. After a series of tests, Jonathan found other queries returned results quickly, indicating the issue was specific to the original query.
Understanding Typesense Query Fuzziness and Thresholds
Ashraful was confused about different query results when applying filters in Typesense. Jason clarified the function of `drop_tokens_threshold` and `typo_tokens_threshold` options, explaining their effect on search results and their precedence.