Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
spinoff from LUCENE-3290, where yonik mentioned:
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).
I think this is a useful stat to add, in case you have sparse fields for heuristics or scoring.