[
https://issues.apache.org/jira/browse/SOLR-10952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132074#comment-18132074
]
Nick Shanin commented on SOLR-10952:
------------------------------------
>From code reading against apache/main b73f03976fa, the query result cache key
>has no stats-source field
>(solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java:1572-1578,
>1739), so cached local scores can be reused across shards with the global
>stats cache. The test uses {!cache=false} to avoid this
>(solr/core/src/test/org/apache/solr/search/stats/TestDefaultStatsCache.java:79).
> Is this still an issue with the stats cache enabled?
🤖 AI-generated 🤖
> Exact*Stats are ignored due to query result cache
> -------------------------------------------------
>
> Key: SOLR-10952
> URL: https://issues.apache.org/jira/browse/SOLR-10952
> Project: Solr
> Issue Type: Bug
> Components: search
> Reporter: Mikhail Khludnev
> Priority: Major
>
> the case is described at
> https://issues.apache.org/jira/browse/SOLR-10824?focusedCommentId=16062814&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16062814
>
> {quote}
> * search id:11, got it cached in query results.
> * add docs, commit
> * it triggers cache regeneration, this query is executed per every shard.
> However, their scores are local only.
> * search id:11 again, got cache hit, retrieve local only scores. Ignore exact
> stats, even they are properly distributed via GET_TERM_STATS
> {quote}
> the seed to reproduce {{-ea -Dtestcase=TestExactSharedStatsCache
> -Dtests.method=test -Dtests.seed=EF21F7455842423F -Dtests.multiplier=2
> -Dtests.slow=true -Dtests.locale=de-GR -Dtests.timezone=Etc/GMT-11
> -Dtests.asserts=true -Dtests.file.encoding=UTF-8}}, note the test was fixed
> by https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=7c44862 . So,
> to reproduce, it needs to be rolled back.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]