Solr.RandomSortField on multiple instances of the solr server

I have a solr question, I have several instances of the solr server, they all have the same data and scheme, the scheme contains a dynamic field, which solr.RandomSortFieldis why I wonder if I run sort=rand_1234%20descsolr on different servers, I suppose, to get the same result ?

+3
source share
1 answer

According to the source code of RandomSortField, the seed contains the version number of the index. This means that if you issue a search with the same random parameter (for example, "sort = random_1234") on different servers, the same result is returned if the indexes are equal (same content) and have the same version identifier (via replication).

/admin/ui .

http://grepcode.com/file/repo1.maven.org/maven2/org.apache.solr/solr-core/3.5.0/org/apache/solr/schema/RandomSortField.java

0

Source: https://habr.com/ru/post/1783533/


All Articles