i am currently writing a script which makes use of update by query.
I am trying to remove a field in all indices and documents older than 7 days.
I can see in Kibana that it is working. But i think the information are still stored in elasticserach because i heard that update by query creates a new version of the updated document.
My questions are:
- Is this correct?
- If yes, how can i remove older versions of document or how can i update without creating new versions of documents.