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

remove MultiTermQuery get/inc/clear totalNumberOfTerms

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5, 4.0-ALPHA
    • None
    • None
    • New

    Description

      This method is not correct if the index has more than one segment.
      Its also not thread safe, and it means calling query.rewrite() modifies
      the original query.

      All of these things add up to confusion, I think we should remove this
      from multitermquery, the only thing that "uses" it is the NRQ tests, which
      conditionalizes all the asserts anyway.

      Attachments

        1. LUCENE-3205.patch
          20 kB
          Robert Muir
        2. LUCENE-3205.patch
          28 kB
          Uwe Schindler
        3. LUCENE-3205-3x.patch
          24 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: