"Query By" Parameters Resulting in Fewer Search Results
TLDR Jon encountered unexpected behavior with "query by" parameters. Upon checking the post request body by Jason, Kishore Nallan noted the issue originates from the typo match with "full stack". Suggested solution was setting split_joins_tokens: always
.
3
Jul 29, 2022 (17 months ago)
Jon
05:45 PMQuery By
parameters. I would expect that adding a new parameter would either not affect search results, or would increase the number of results. But when I add a parameter, I’m actually seeing fewer results. Can you help me understand why?Jason
05:49 PMCould you open up the browser dev console, then repeat the same search again and then copy as curl the request sent to the
.../api/...
endpoint, and then paste just the post request body here which has all the search params?Jon
05:50 PMJason
05:52 PM--data-raw '{"searches":[{"query_by":"title,slug,categories,description,shortDescription","group_by":"","sort_by":"_text_match:desc","highlight_full_fields":"title,slug,categories,description,shortDescription","collection":"catalogContent_20220729T163000","q":"full stack","facet_by":"","page":1,"per_page":5}]}' \
--compressed
Could you delete the rest of your message, since it contains auth and session information
Jon
05:52 PM1
Jason
05:53 PMJon
05:53 PM2
Jul 30, 2022 (17 months ago)
Kishore Nallan
01:33 AMIf you set the
split_joins_tokens: always
then Typesense will always attempt to look for space as typo variations of the query and this will ensure that same set of results are produced with/without the shortDescription field.Jon
09:19 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
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.
Issues with Repeated Words and Hyphen Queries in Typesense API
JinW discusses issues with repeated word queries and hyphen-containing queries in Typesense. Kishore Nallan offers possible solutions. During the discussion, Mr seeks advice on `token_separators` and how to send custom headers. Issues remain with repeated word queries.
Inconsistent Search Results with Typesense
David reported inconsistencies with infix searching using Typesense, despite no change in configuration. Upon review, Jason could not consistently reproduce the issue and suggested potential fixes including a debug build on the user's cluster. The issue remains unresolved.
Resolving Typesense Query Issues
Todd had queries regarding Typesense operation. Jason clarified Typesense's default behavior and provided a recommendation to enhance results ranking based on relevance and recency.
Troubleshooting "drop_tokens_threshold" and Typo Tolerance in Typesense
Joe had issues with "drop_tokens_threshold" = 0 and typo tolerance in Typesense, after which Kishore Nallan provided solutions and clarifications on feature functionality. Their issues with the search result limit and tokens were resolved after discussion and testing.