You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2011/09/09 00:00:10 UTC
[jira] [Updated] (LUCENE-3423) add Terms.docCount
[ https://issues.apache.org/jira/browse/LUCENE-3423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-3423:
--------------------------------
Attachment: LUCENE-3423.patch
> 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
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org