Resolving NULL Values Issue in Typesense Project
TLDR andy thanked Kishore for helping with their typesense project. They shared a problem regarding NULL values that they resolved. Kishore Nallan suggested marking the field as optional for addressing such issues.
1
Dec 12, 2022 (10 months ago)
andy
06:09 PMThe gotchas today, were, it didnt like values set as NULL, so i removed these from the database and it imported as "value":""
Dec 13, 2022 (10 months ago)
Kishore Nallan
02:10 AM1
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.
Handling `string | null` Fields in Schema
gab asked about handling `string | null` fields in schemas. Kishore Nallan suggested they could be marked as optional, so either the field doesn't exist or the value can be null.
Dealing with Null Values when Searching Typesense Documents
sonu inquired what occurs when typesense documents have fields with null values and were trying to search. Jason clarified that only documents with non-null values are returned.