簡體   English   中英

多個solr服務器實例上的solr.RandomSortField

[英]solr.RandomSortField on multiple solr server instances

這里有一個solr問題,我有多個solr服務器實例,它們都是相同的數據和模式,架構包含一個動態字段solr.RandomSortField ,所以我想知道我sort=rand_1234%20desc在不同的solr服務器上運行sort=rand_1234%20desc ,am我想得到相同的結果?

根據RandomSortField的源代碼,種子包括索引的版本號。 這意味着如果您在不同服務器上使用相同的隨機參數(例如“sort = random_1234”)發出搜索,則如果索引相同(相同內容)並且具有相同的版本ID(通過復制),則會返回相同的結果。

您可以在每個服務器的/ admin / ui中檢查索引的版本。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM