"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 (15 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 (15 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 2786 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.
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.
Issues With `text_match` Scoring for Search Queries in Typesense
Colin encountered issues with the `text_match` scoring on Typesense v0.23.1. Jason and Kishore Nallan identified a potential issue with numeric overflow in the text match score and applied an unverified patch. The final resolution is unclear.
Resolving Typesense Result Issue in Document Collection Queries
Mike was encountering errors when searching for specific query in their Typesense document collection. Jason suggested it may be due to the `drop_tokens_threshold` setting. There was a misunderstanding but after further explanation from Jason, Mike understood and decided to continue the conversation via email.