Replicated segments might have different deleted documents by design. Precise numbers can be achieved via exact stats. see https://lucene.apache.org/solr/guide/6_6/distributed-requests.html#DistributedRequests-ConfiguringstatsCache_DistributedIDF_
On Fri, Jan 4, 2019 at 2:40 PM AshB <bishtashis...@gmail.com> wrote: > Version Solr 7.4.0 zookeeper 3.4.11 Achitecture Two boxes > Machine-1,Machine-2 > holding single instances of solr > > We are having a collection which was single shard and single replica i.e > s=1 > and rf=1 > > Few days back we tried to add replica to it.But the score for same query is > coming different from different replicas. > > > http://Machine-1:8983/solr/MyTestCollection/select?q=%22data%22+OR+(data)&rows=10&fl=score&defType=edismax&qf=search_field+content&wt=json > > "response":{"numFound":5836,"start":0,"maxScore":*4.418847*,"docs":[ > > whereas on another machine(replica) > > > http://Machine-2:8983/solr/MyTestCollection/select?q=%22data%22+OR+(data)&rows=10&fl=score&defType=edismax&qf=search_field+content&wt=json > > "response":{"numFound":5836,"start":0,"maxScore":*4.4952264*,"docs":[ > > The maxScore is different. > > Relevancy gets affected due to sharding but replication was not expected as > same documents get copied to other node. score explaination gives issue > with > docCount and docFreq uneven. > > idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) > from: > 1.050635000 docCount :*10020.000000000* docFreq :*3504.0000000* > > idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) > from: > 1.068795100 > > docCount :*10291.000000000* docFreq :*3534.0000000* > > Is this expected?What could be wrong here?Please suggest > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > -- Sincerely yours Mikhail Khludnev