Joe
11/07/2021, 12:51 AMJoe
11/07/2021, 12:52 AMdavis lorum ipsum
With the example query, all documents that include "davis", are being matched, despite having no mention of "lorum" or "ipsum", in any of the document attributes. No matter how many non-matching words I add at the end of the query, it still returns documents that only match the first word.
How can I limit results, such that the matched document must (fuzzy) contain all terms in the query (not necessarily in order, or on the same attributes)? e.g. {name: 'davis', class: 'lorum etc...', 'notes': 'call ipsum'}
should match.Kishore Nallan
11/07/2021, 3:04 AMtypesense/typesense:0.22.0.rcs25
Docker build.Joe
11/07/2021, 3:28 AMJinW
11/07/2021, 3:37 AMKishore Nallan
11/07/2021, 3:38 AMJoe
11/07/2021, 3:40 AMKishore Nallan
11/07/2021, 3:41 AMJoe
11/07/2021, 3:43 AMKishore Nallan
11/07/2021, 3:45 AMKishore Nallan
11/07/2021, 3:45 AMKishore Nallan
11/07/2021, 3:46 AMJoe
11/07/2021, 3:58 AMJoe
11/07/2021, 4:00 AMKishore Nallan
11/07/2021, 4:03 AMdrop_tokens_thresold: 0
you are saying that don't drop any tokens from the query string. So Typesense will look for fields that contain both tokens jim
and baker
.Kishore Nallan
11/07/2021, 4:03 AMJoe
11/07/2021, 4:06 AMdavis lorum ipsum
)Kishore Nallan
11/07/2021, 4:08 AMJoe
11/07/2021, 4:08 AMKishore Nallan
11/07/2021, 4:09 AMKishore Nallan
11/07/2021, 4:09 AMhighlight_fields
parameter during search.Joe
11/07/2021, 4:09 AMKishore Nallan
11/07/2021, 4:11 AMJoe
11/07/2021, 4:13 AMKishore Nallan
11/07/2021, 4:17 AMJoe
11/07/2021, 4:18 AMKishore Nallan
11/07/2021, 4:19 AMJoe
11/07/2021, 4:19 AMKishore Nallan
11/07/2021, 4:20 AM_text_match
will be higher for documents with better match, both is number of tokens found and how near they are found to each other in terms of proximity.