[
https://issues.apache.org/jira/browse/SOLR-10824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050294#comment-16050294
]
Mikhail Khludnev commented on SOLR-10824:
-----------------------------------------
I don't understand how it may work at all:
{quote}
======================= Control Response =======================
1.6931472 = weight(id:` in 2) [MockConfigurableSimilarity], result of:
1.6931472 = fieldWeight in 2, product of:
1.0 = tf(freq=1.0), with freq of:
1.0 = termFreq=1.0
1.6931472 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
1.0 = docFreq
3.0 = docCount
1.0 = fieldNorm(doc=2)
{quote}
vs
{quote}
======================= Shard Response =======================
1.4054651 = weight(id:` in 1) [MockConfigurableSimilarity], result of:
1.4054651 = fieldWeight in 1, product of:
1.0 = tf(freq=1.0), with freq of:
1.0 = termFreq=1.0
1.4054651 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
1.0 = docFreq
2.0 = docCount
1.0 = fieldNorm(doc=1)
{quote}
So, the problem is the mismatch between control {{ 3.0 = docCount}} and sharded
{{ 2.0 = docCount}}
I can see stats exchange. It seems fine. But I can't find how global docCount
is applied to scoring. Can someone give a clue?
> java.lang.NullPointerException ExactSharedStatsCache.getPerShardTermStats
> --------------------------------------------------------------------------
>
> Key: SOLR-10824
> URL: https://issues.apache.org/jira/browse/SOLR-10824
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: search
> Affects Versions: 6.6
> Reporter: Mikhail Khludnev
> Priority: Minor
> Attachments: SOLR-10824.patch, SOLR-10824.patch
>
>
> {quote}
> INFO [qtp411311908-32] (SolrCore.java:2304) - [collection1_shard3_replica2]
> webapp=/solr path=/select
> params={..&distrib=false&_stateVer_=collection1:5...&shards.purpose=32768&shard.url=http://127.0.0.1:57114/solr/collection1_shard3_replica2/|http://127.0.0.1:57112/solr/collection1_shard3_replica1/&version=2....)&NOW=1496751847089&isShard=true&applicability.frm=FRM&wt=javabin}
> status=0 QTime=18
> INFO [qtp2123780104-30] (SolrCore.java:2304) - [collection1_shard1_replica1]
> ...
> INFO [qtp411311908-45] (SolrCore.java:2304) - [collection1_shard2_replica1]
> ...
> ERROR [qtp411311908-33] (SolrException.java:148) -
> java.lang.NullPointerException
> at
> org.apache.solr.search.stats.ExactSharedStatsCache.getPerShardTermStats(ExactSharedStatsCache.java:76)
> at
> org.apache.solr.search.stats.ExactStatsCache.sendGlobalStats(ExactStatsCache.java:233)
> at
> org.apache.solr.handler.component.QueryComponent.createMainQuery(QueryComponent.java:930)
> at
> org.apache.solr.handler.component.QueryComponent.regularDistributedProcess(QueryComponent.java:726)
> at
> org.apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:679)
> at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:345)
> INFO [qtp411311908-33] (SolrCore.java:2304) - [collection1_shard3_replica2]
> webapp=/solr path=/select params={...&wt=javabin&version=2} status=500
> QTime=82
> {quote}
> Switching to {{LRUStatsCache}} seems help.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]