Querying to Delete Documents without Specific Field
TLDR Serezha inquired about a query to delete documents missing certain fields, to which Kishore Nallan explained that it's unfeasible due to Typesense's storage behavior.
Powered by Struct AI
1
2
8mo
Solved
Jan 23, 2023 (8 months ago)
Serezha
Serezha
01:47 PMHi All,
Do we have query to delete documents where some field is missing. Something like if document don't have
Do we have query to delete documents where some field is missing. Something like if document don't have
xxxx
field delete itKishore Nallan
Kishore Nallan
01:57 PMThis is not possible because Typesense does not store any reference to empty values. So will not know which docs are empty.
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Deleting and Creating Documents in Typesense
Priyank asked for help with deleting and creating documents in Typesense and found the problem to be an issue with their own code. Jason offered support.
7
8mo
Solved
Effective Document Deletion Strategies in Typesense
Adrian asked about deleting potentially non-existent documents. Pantelis suggested using IDs for document deletion or queries within delete function. Adrian decided to use query-based deletions.
7
1mo
Solved
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.
3
29mo
Solved