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

remove MultiTermQuery get/inc/clear totalNumberOfTerms

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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-3x.patch
          24 kB
          Uwe Schindler
        2. LUCENE-3205.patch
          20 kB
          Robert Muir
        3. LUCENE-3205.patch
          28 kB
          Uwe Schindler

          Activity

            People

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: