As soon as I update a doc in the index its position will change with this
sort. I took a diff of the before and after result set, and with a set of
about 180 documents I noticed 8 documents switched places after the update.
If I insert a doc instead of updating a doc then it works as expected. The
new doc is inserted into a random spot, but in a consistent manner.
I'm facing the same issue.
Is there no way to choose what the seed actually should pick for the random
score calculation?
Or just let it pick the uid which never changes.
On Tuesday, February 11, 2014 1:00:57 AM UTC+1, Brandon Williams wrote:
I'm using random_score to perform a search with some random sorting,
something as simple as this:
As soon as I update a doc in the index its position will change with this
sort. I took a diff of the before and after result set, and with a set of
about 180 documents I noticed 8 documents switched places after the update.
If I insert a doc instead of updating a doc then it works as expected. The
new doc is inserted into a random spot, but in a consistent manner.
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.