Query Hack without Exists/Doesn't Exist Tag
TLDR David asks how to perform a specific query. Jason suggests a hack, creating a new boolean field and set it during indexing. The solution is agreed upon. Gustavo suggests allowing 'null' indexing.
1
Jul 14, 2023 (2 months ago)
David
10:27 PMhttps://github.com/typesense/typesense/issues/798
Jason
10:29 PMfieldx_exists: true|false
and set that at indexing time when you put together the JSON document, then filter on itDavid
10:32 PMDavid
10:33 PM1
Jul 15, 2023 (2 months ago)
Gustavo
12:31 AMnull
besides omitting the field.Typesense
Indexed 2779 threads (79% resolved)
Similar Threads
Troubleshooting Typesense 400 Error with Null Fields
sonu was encountering a 400 error due to null fields during Typesense indexing. Jason suggested upgrading to a recent version, removing null fields, and marking potentially null fields as `optional: true`. gab shared a similar issue and workaround.
Troubleshooting Typesense Filter_by Parameter Issue
Sagar had trouble with the filter_by parameter in Typesense. Kishore Nallan identified issue related to indexing, which resolved part of the issue. Guidance was given for handling null values.
Querying with Typesense-Js and Handling Null Values
michtio was querying using typesense-js and receiving fewer results than expected. Kishore Nallan suggested using different query parameters. Further discussion led to the handling of 'null' values and filtering syntax in the search queries. The thread ended with Jason offering migration support from Algolia to Typesense.