Vamshi Aruru
10/28/2024, 11:00 AMvariantTitle : `queen`
we are noticing that this doesn't match documents which have variant title as Queen/SomeWordHere
. Can anyone help me understand what that is? Is it because the :
operator does token match, and Queen/SomeWordHere
is not matching with the queen
token? Is there a way to make it do substring match instead? Or is the only way creating a new collection with /
as a token separator?
TIA!Kishore Nallan
10/28/2024, 11:14 AMqueensome
(i.e. longer prefix)Vamshi Aruru
10/28/2024, 11:16 AMqueen/somewordhere
matches, and queensomewordhere
(without the /) also matches but anything smaller doesn't match.Kishore Nallan
10/28/2024, 11:23 AMmax_filter_by_candidates
option that can be used to increase the default value of 4
which might help here.Vamshi Aruru
10/28/2024, 11:24 AM/
as token separator help then?Kishore Nallan
10/28/2024, 11:38 AMqueensome
work?Vamshi Aruru
10/28/2024, 11:41 AMqueen/double
or queendouble
works. No other value works.Kishore Nallan
10/28/2024, 11:43 AMmax_filter_by_candidates: 100
works.Vamshi Aruru
10/28/2024, 12:54 PMcurl --location '<http://localhost:8108/collections/product_variant/documents/search?q=*&filter_by=title%20%3A%20%60Queen%60&max_filter_by_candidates=100>' \
--header 'x-typesense-api-key: xyz'
results are empty. I'm using the image typesense/typesense:28.0.rc8
Kishore Nallan
10/28/2024, 1:52 PMVamshi Aruru
10/28/2024, 3:11 PMHarpreet Sangar
10/29/2024, 5:01 AMfilter_by=title : Queen*
?Kishore Nallan
10/29/2024, 10:07 AMfilter_by=title : Queen*
should work @Vamshi Aruru -- I somehow forgot that prefix filtering on the filter_by clause requires that trailing asterisk.Vamshi Aruru
11/04/2024, 2:33 AMCONTAINS
test (as in the word can be present anywhere in the field, not just at the start).Kishore Nallan
11/04/2024, 3:19 AMfilter_by=title : Queen*
will match a record with title The Queensland