Adding "Contains" Condition in Filter_By
TLDR GM asked how to add a "contains" condition in filter_by for category 'Shoe'. Jason advised using category:Shoe
.
1
Jan 06, 2023 (11 months ago)
GM
04:43 PMGM
04:44 PMGM
04:44 PMJason
04:44 PMcategory:Shoe
will give you contains1
GM
04:49 PMTypesense
Indexed 3011 threads (79% resolved)
Similar Threads
Trouble with Document Matching in 'filter_by' Field
Roman struggled with incorrect matches in the `filter_by` field. Kishore Nallan explains it only works at the word level, not partial prefix, and suggested setting `drop_tokens_threshold` to 0 to prevent incorrect matches.
Clarification on `filter_by` Argument in Typesense Documentation
Gabe asked if `filter_by` in Typesense accepts OR arguments, which Jason confirmed. Gabe then suggested adding this clarification to the documents.
Discussing Filter Operators in Typesense
Roshan asked about the functionality of the 'contains' operator in Typesense filters. Kishore Nallan explained how to use the operator and suggested using a curl query for better insight into the issue. However, the thread ends without a resolution.