Dakota Sorenson
03/25/2025, 9:11 PMstring[]
type
{ name: 'contact.tag_ids', optional: true, sort: false, type: 'string[]' }
Sometimes, we have documents with no tag IDs, which we typically upsert an empty array []
for. I recently noticed that if a tag was added to the array tag_ids: ['tag1']
for example and then removed (so back to an empty array tag_ids: []
) - it seems like that value that was added and removed is still in memory/index. Querying by that tag ID will still return the document even though it has an empty array now. This only seems to be happening when it's updated to have an empty array of tag IDs.
Is there a different way we should be setting empty arrays so that the index properly resets? Or is this potentially an issue on our Typesense server (v26)? Or potentially a bug?Dakota Sorenson
03/25/2025, 9:40 PMKishore Nallan
03/26/2025, 2:05 AM29.0.rc9
RC build and let me know if you still face this issue.Dakota Sorenson
03/26/2025, 1:58 PMno_tag_ids
or something just so the array isn't empty - just wanted to share this idea in case anyone else runs into this!Kishore Nallan
03/27/2025, 10:16 AMDakota Sorenson
03/27/2025, 2:03 PM