Negation Possibility on `string[]` Fields
TLDR Ross inquired about the possibility of negation with string[]
fields. Kishore Nallan confirmed it can be done.
Powered by Struct AI
2
15mo
Solved
Jun 15, 2022 (15 months ago)
Ross
Ross
01:56 AMIs it possible to do negation with
string[]
fields? The docs mention string and boolean only, but after searching the GitHub issues I found an old post that led me to believe it might be possible.Kishore Nallan
Kishore Nallan
06:05 AMYes, negation is possible on
string[]
as well.Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2764 threads (79% resolved)
Similar Threads
Issues with Array Filtering in Numeric Fields
Robert couldn't use negation operator for integer array filtering. Kishore Nallan clarified it only works on strings and booleans.
4
25mo
Solved
Sanitizing Queries with Special Characters in Typesense
Daniel asked about sanitizing queries containing special characters in Typesense. Kishore Nallan recommended using backticks for literal string values and fixing the schema for field names with special characters, sticking to alphanumeric and underscores.

13
5mo
Solved
Querying Fields for Null/Undefined/Missing Values
Emma asked if filtering fields by nullity is possible. Jason provided a workaround link, which Emma appreciated.

3
1mo
Solved