Resolving Search Parameter Issues in Endpoint
TLDR Julian had issues with endpoint search parameters not returning expected results. Jason and Kishore Nallan suggested using exhaustive_search=true
and max_candidates=1000
respectively, which resolved the issue.
1
Jan 26, 2023 (11 months ago)
Julian
11:00 PMWhat do you recommend me to check in this case? When the search term is zp9Sis, Iām expecting to match with strings like zp9Sis-230123-001, zp9Sis-230123-011 and zp9Sis-230123-021 (the last three are a serial number). But, currently only some of them appear (10), except when the search is more precise, like zp9Sis-230123-00. Iām hitting this endpoint with these URL params:
query_by=confirmation_id,purchase_order_identifiers&num_typos=0&sort_by=&highlight_full_fields=confirmation_id,purchase_order_identifiers&q=zp9Sis-230123-&facet_by=arrival_time,facility_name,checkin_status,scheduler_name,equipment_type_id,status,appointment_type_name,created_by_name&filter_by=&max_facet_values=10&page=1&per_page=25
I even added the - to the symbols_to_index search param. Thanks in advance.
Jason
11:02 PMexhaustive_search=true
as a search parameter and try again?Jan 27, 2023 (11 months ago)
Julian
03:24 AM1
Kishore Nallan
06:15 AMmax_candidates
param. This directly controls the number of unique words to be used as candidates for search when there are multiple words that share the same prefix. Set this to a higher value like 1000
. The exhaustive_search
can be more expensive because it increases a bunch of other limits including max_candidates
and you probably don't need that here.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 'max_candidates' in Prefix Search
Edward reported inconsistent search results when using prefix 'EXAM'. Kishore Nallan suggested using `max_candidates` and `exhaustive_search` parameters. However, `max_candidates` did not work as expected, and needs further investigation.