[ 
https://issues.apache.org/jira/browse/SOLR-17038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17813191#comment-17813191
 ] 

Christine Poerschke commented on SOLR-17038:
--------------------------------------------

bq. I am working on this. Any other stats apart from "termCount" that could be 
useful ?

Thanks! Based on 
https://github.com/apache/lucene/blob/releases/lucene/9.9.2/lucene/core/src/java/org/apache/lucene/index/Terms.java#L98-L121
 I'd say "termCount" is the only missing stats here.

> /admin/segments handler: Expose the term count
> ----------------------------------------------
>
>                 Key: SOLR-17038
>                 URL: https://issues.apache.org/jira/browse/SOLR-17038
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Priority: Minor
>              Labels: newdev
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The term count for a field is not exposed for diagnostic purposes.  Strangely 
> enough, more obscure statistics like sumDocFreq and sumTotalTermFreq are.
> Just need to add a line like:
> {quote}fieldFlags.add("termCount", terms.size());{quote}
> to SegmentsInfoRequestHandler next to [where those other stats are 
> gathered|https://github.com/apache/solr/blob/releases/solr/9.4.1/solr/core/src/java/org/apache/solr/handler/admin/SegmentsInfoRequestHandler.java#L371-L372].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to