I have 65,000 documents in elastic search. one field named "my_attachment" is missing from the entire document. I want to update documents that do not have this "my_attachment" field, so I use a query filter, as shown below:
"query": {
"constant_score" : {
"filter" : {
"missing" : { "field" : "my_attachment" }
}
}
}
I do this in the same way as updating a document whose field "my_attachment" is missing as 10 documents in time, after this request is executed again and again. 10 documents have been updated. But upon reaching it 65,000 documents and start again to update the document. At that time, this query gives the result in the form of a document that has a field "my_attachment". Why is this happening?. In fact, it will show results whose fields are missing, but I get the result with this field. is there a problem with a missing field request.? Because it works great in one phase. I don’t understand what is going on there. What is wrong with this ...?
source
share