-
Notifications
You must be signed in to change notification settings - Fork 681
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-17038: /admin/segments handler: Expose the term count #2233
SOLR-17038: /admin/segments handler: Expose the term count #2233
Conversation
One odd thing that I noticed was that upon running /gradlew tidy updateLicenses check -x test it ended up deleting solr/licenses/jakarta.inject-2.6.1.jar.sha1 . Don't think updateLicenses task should do that since there is no dependency removal because of this change. |
Thanks @rahulgoswami for opening this pull request! May I suggest to undo the removal of the
optional suggestion: addition of class level javadocs to make the
optional suggestion: additional test coverage e.g. expanding |
d61a676
to
0830423
Compare
Incorporated review comments by @cpoerschke :
|
The (unrelated) hadoop-auth test module keeps failing. Bad apple ? |
I would agree that it's unrelated. Had a look at https://github.com/apache/solr/blob/main/dev-docs/FAQ.adoc#where-can-i-find-information-about-test-history resources and found no obvious history of previous failures. |
…ents_impprovements
(cherry picked from commit dbf1d1d)
Thanks for merging the PR @cpoerschke! |
* main: Add bugfix version 8.11.3 Add 8.11.3 release to DOAP RDF file SOLR-16858: KnnQParser's "Pre-Filtering" behavior is now controlable via local params (closes apache#2157) SOLR-17066: Switch HttpSolrClient away from coreURLs, pt 3 (apache#2240) dev-docs + help: try-and-tweak 'Solr X Lucene' docs (apache#2223) SOLR-17152: Better alignment of Admin UI graph (apache#2249) SOLR-15960: Find unexported variables with compgen (apache#2250) fix a few typos in the Indexing Guide (apache#2245) SOLR-17149: Fix backup/restore for large collections. (apache#2243) SOLR-17146: Add DelegatingBackupRepository and alternative checksum verification (apache#2239) Revert "Revert "SOLR-17066: Switch HttpSolrClient away from coreURLs, pt 2 (apache#2231)"" SOLR-17038: /admin/segments handler: Expose the term count (apache#2233)
https://issues.apache.org/jira/browse/SOLR-17038
Description
Added fieldFlags.add("termCount", terms.size()) in SegmentsInfoRequestHandler to add termsCount when ?fieldInfo=true
Solution
Added fieldFlags.add("termCount", terms.size()) in SegmentsInfoRequestHandler to add termsCount when ?fieldInfo=true
Tests
No specific test cases added since currently there are no test cases for individual properties in the handler output.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.