Can you also tell me your cluster id?
# community-help
k
Can you also tell me your cluster id?
d
Yeah sure: h528vmptn1g0crwbp
But really, I'm just trying to export one single document
k
Okay, one second, let me look.
d
The JS-client, btw!
k
Can you try again now? The import somehow wasn't going through, I have no idea why. Let's try again to see if it is happening again.
Btw, this version does not contain the
emplace
action. That's on a RC build.
d
Ah right, could you update us to that rc version?
k
Ok, hold on.
Ok done.
We have a different scheduled process for customer upgrade requests that queues up upgrades. For now, to unblock you, I have upgraded your cluster manually, but will schedule for a former upgrade later on. So the UI will still reflect 0.22.1.
You can hit the
/debug
end-point to confirm that version: it will be 0.23.rc20
d
Ok, great! Thank you 🙂
👍 1
Working now 🙂 Btw, is there a way to batch delete?
documents, that is
k
You can use
delete by query
: https://typesense.org/docs/0.22.1/api/documents.html#delete-by-query Send a filter_by that contains a condition that can match all records.
We have a todo item to support a wildcard
*
(delete all) operation.
If you don't have such a field that can match all records, then you have to drop the collection and re-create it.
d
Ok, I wa more thinking of something like the batch import, where I would pass in an array of documents to import and define a batch size. In our case, we might have a thousand events coming in from our kinesis stream, where 500 might be emplace, and 500 delete. I will then group them by their different actions and perform them by batch. What would be the best way of doing something like that for delete, you think?
k
Yeah you can do
filter_by=id: [id1, id2, id3]
d
Badabing badaboom! Thanks
k
I will update the docs to add this use case.
1