Query to retrieve Not existing ids into Index


I want to know the list of ids that does not exist into index . How I can such things ?

Thank you :slight_smile:

I don't think ES can do this: it doesn't know your full universe of IDs?

But you could run a match all query, and use the scroll API to iterate through all results, gather up all the IDs you saw, and subtract that (on the client side) from the full universe of IDs?

Mike McCandless