Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10398

Add static method for getting Terms from LeafReader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 9.1
    • 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!

      Attachments

        Activity

          People

            Unassigned Unassigned
            mdmarshmallow Marc D'Mello
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h