[
https://issues.apache.org/jira/browse/LUCENE-3423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir resolved LUCENE-3423.
---------------------------------
Resolution: Fixed
Assignee: Robert Muir
> add Terms.docCount
> ------------------
>
> Key: LUCENE-3423
> URL: https://issues.apache.org/jira/browse/LUCENE-3423
> Project: Lucene - Java
> Issue Type: New Feature
> Reporter: Robert Muir
> Assignee: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3423.patch
>
>
> spinoff from LUCENE-3290, where yonik mentioned:
> {noformat}
> Is there currently a way to get the number of documents that have a value in
> the field?
> Then one could compute the average length of a (sparse) field via
> sumTotalTermFreq(field)/docsWithField(field)
> docsWithField(field) would be useful in other contexts that want to know how
> sparse a field is (automatically selecting faceting algorithms, etc).
> {noformat}
> I think this is a useful stat to add, in case you have sparse fields for
> heuristics or scoring.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]