#community-help

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
face_holding_back_tears

1

2
8mo
Solved
Join the chat
Jan 23, 2023 (8 months ago)
Serezha
Photo of md5-eb49c5c6c4760da05ee63114a05e6013
Serezha
01:47 PM
Hi All,
Do we have query to delete documents where some field is missing. Something like if document don't have xxxx field delete it
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
01:57 PM
This is not possible because Typesense does not store any reference to empty values. So will not know which docs are empty.
face_holding_back_tears

1