when indexing multiple documents can you update an...
# community-help
n
when indexing multiple documents can you update and delete in the same payload ?
j
No, we don't have a way to delete in the same payload.
So you would have to do all updates using the import api call, and then use the delete by query endpoint to delete separately
n
we have deletes that happen for records that don't exist would these effectively be a noop ?
f
Hey Nathan, do you mean that you try to delete documents that may or may not exist in your index?
n
yeah
we just send a delete document even though it might not exist in the index or was previously deleted
if it's more then a noop we might put a search to see if it exists before doing the delete
j
If you use delete by query, then yes they'll just be noops
If you delete by document ID, it will throw an error, but you can ignore the error in your application
n
and cause it throws an error there is a small amount of usage on the server ?
I assume that means it goes into the write queue
j
If the document doesn't exist, then it doesn't go into the write queue and is immediately rejected