Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
Hi all, LeafReader has methods like getBinaryDocValues(String field) that return null values if the field is not indexed. These methods also have equivalent DocValues static methods, such as DocValues.getBinary(), which return an emptyBinary() rather than a null if there is no field. I noticed that Terms does not have an equivalent static method for LeafReader.terms() like Terms.terms() or something similar. I was wondering if there was a reason for this, or if a method like this could be useful. Thanks!