Checking Field Existence in Typesense
TLDR Saurabh wanted to check field existence in Typesense, and Jason suggested indexing a new field fieldA_exists
as a workaround.
Powered by Struct AI
1
1
4
5mo
Solved
May 11, 2023 (5 months ago)
Saurabh
Saurabh
06:39 PMhey all ,
how to check if field exists in typsense ?
how to check if field exists in typsense ?
1
Jason
Jason
06:52 PMThere’s no way to check for the absence or presence of fields in Typesense directly.
So you would have to create a new field called say
So you would have to create a new field called say
fieldA_exists: true | false
and set that at indexing time to be able to query with it laterSaurabh
Saurabh
08:23 PMthanks Jason for helping me out...
1
08:23
Saurabh
08:23 PM Ajay
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Query Hack without Exists/Doesn't Exist Tag
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.
5
2mo
Solved
Debugging Document Filter Issue with Typesense PHP
Mathieu is facing an issue where a non-existent field in a document appears in search hits. Jason suggests replicating the issue using curl to examine whether the problem lies within Typesense or the PHP library.
10
13mo
Querying Empty Strings in Typesense Cloud - Collection Search
Loic wanted to query empty strings in Typesense, but Jason explained this needs to be done when indexing as Typesense doesn't support querying blank keys.
4
12mo