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

Add FLAG_NONE to DocsEnum and DocsAndPositionsEnum

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.1, 6.0
    • core/index
    • None
    • New, Patch Available

    Description

      Add a convenience constants FLAGS_NONE to DocsEnum and DocsAndPositionsEnum. Today, if someone e.g. wants to get the docs only, he needs to pass 0 as the flags, but the value of 0 is not documented anywhere. I had to dig in the code the verify that indeed that's the value.

      I'll attach a patch later.

      Attachments

        1. LUCENE-4605.patch
          66 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: