[ 
https://issues.apache.org/jira/browse/SOLR-17038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christine Poerschke updated SOLR-17038:
---------------------------------------
    Description: 
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].

  was:
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.


> /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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to