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

InstantiatedIndexReader does not handle #termDocs(null) correct (AllTermDocs)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.9, 2.9.1, 3.0
    • 2.9.2, 3.0.1, 4.0-ALPHA
    • modules/other
    • None
    • New, Patch Available

    Description

      This patch contains core changes so someone else needs to commit it.

      Due to the incompatible #termDocs(null) behaviour at least MatchAllDocsQuery, FieldCacheRangeFilter and ValueSourceQuery fails using II since 2.9.

      AllTermDocs now has a superclass, AbstractAllTermDocs that also InstantiatedAllTermDocs extend.

      Also:

      • II-tests made less plausable to pass on future incompatible changes to TermDocs and TermEnum
      • IITermDocs#skipTo and #next mimics the behaviour of document posisioning from SegmentTermDocs#dito when returning false
      • II now uses BitVector rather than sets for deleted documents

      Attachments

        1. LUCENE-2144.txt
          28 kB
          Karl Wettin
        2. LUCENE-2144-30.patch
          27 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            karl.wettin Karl Wettin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: