-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLR-17058: Request param to disable distributed stats request at query time #2046
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weiwang19 thank you so much for the contribution! I think it's worthwhile to add. I want to share my opinion, it's quite flexible though.
solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/stats/TestDistribIDF.java
Outdated
Show resolved
Hide resolved
solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java
Outdated
Show resolved
Hide resolved
solr/solr-ref-guide/modules/deployment-guide/pages/solrcloud-distributed-requests.adoc
Outdated
Show resolved
Hide resolved
Thanks @weiwang19 |
please let me know if there are any concerns to address. |
pls check weiwang19#1 |
SOLR-170588: more explicit asserts
Done with the changes. Thank you so much @mkhludnev |
Thanks, @weiwang19. Would you mind to create cherrypick PR to branch_9x? |
…ry time (apache#2046) * add param to disable distrib stats at query time --------- Co-authored-by: wwang30 <[email protected]> Co-authored-by: Mikhail Khludnev <[email protected]>
@mkhludnev can you help check the PR for backport to 9x? #2291 |
…ry time (#2291) * SOLR-17058: Request param to disable distributed stats request at query time (#2046) Co-authored-by: wwang30 <[email protected]> Co-authored-by: Mikhail Khludnev <[email protected]>
…alStatsCache (#2332) follow up SOLR-17058 (#2046)
…alStatsCache (apache#2332) follow up SOLR-17058 (apache#2046)
…alStatsCache (#2332) (#2350) follow up SOLR-17058 (#2046)
…alStatsCache (apache#2332) follow up SOLR-17058 (apache#2046)
https://issues.apache.org/jira/browse/SOLR-17058
Description
When distributed IDF is enabled in solr cloud by adding one of the cache implementations in solrconfig.xml https://solr.apache.org/guide/solr/latest/deployment-guide/solrcloud-distributed-requests.html#distributedidf, each solr query will incur a distributed shard request to get term statistics. For queries that does not use distributed IDF information for scoring, the stats request is not necessary.
Solution
Hence I propose to add a distrib.statsCache request param so that the distributed stats request can be disabled at query time.
Tests
Added unit tests related to distrib IDF and query result key.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.