Phrase Matching vs Prefix Search in Query
TLDR Gerald wanted to prevent phrase matching, and Kishore Nallan suggested wrapping the query in quotes.
May 29, 2023 (6 months ago)
Gerald
01:50 AMKishore Nallan
10:23 AMquery_by
does prefix search on keywords by default. So ele
will match elephant
etc. Also table
will match table lamps
also because we will pull up all documents that contain the word table
.Gerald
01:42 PMKishore Nallan
01:46 PMMay 31, 2023 (6 months ago)
Gerald
02:13 AMadditionalSearchParameters: {
query_by: "product_cat, pa_material, pa_color, pa_collection, pa_theme, pa_style, post_title",
sort_by: "_text_match:desc"
},
Gerald
02:15 AMGerald
02:16 AMI would want product_cat to see that “table lamps” does not match “table”
Kishore Nallan
02:55 AM"table lamps"
(wrap query in quotes)Typesense
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.
Understanding Query Prefixes in Database Searches
Davide asked for a simple explanation on how query prefixes work in database searches. Kishore Nallan clarified how prefix=true and prefix=false influence the search results.
Discussing Prefix-Match for Multiple Tokens
Sidharth asked if prefix matching for separate tokens was possible and Kishore Nallan explained why it would be computationally intensive. Kishore Nallan then suggested an ngram solution which seemed to satisfy Sidharth's need.
Query on "weighted_score" & Issue with Synonym Highlighting
Stefan asked about "weighted_score" field and reported a possible synonym highlighting issue. Kishore Nallan clarified the use of "weighted_score". The possible synonym issue is still being investigated.
Resolving Typesense Search Issues
Conversation started by Maximilian about Typesense search behavior led to Users Kishore Nallan and Mike discussing and suggesting workaround, with Kishore Nallan promising an official solution soon. No final confirmation of resolution provided.