Hello. I would like to query my documents in my index based on their _version.
I have tried a couple of solutions but none of them worked, hopefully you might be able to assist me with this.
My attempts are:
Executing an _update_by_query request on all documents and assigning _version to a new, indexable field:
Wanted to update, I've discovered one solution so far which is to use the _update endpoint. Version is specified there correctly, so what I'm doing right now is scrolling through the entirety of my index and bulking _update calls with a painless script to add version as an indexable field. I've had to run this flow from the client, using a nodejs server. This here's the code for anyone who's interested:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.