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

Remove enforcing of Filter Rewrite for NRQ queries

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-BETA, 6.0
    • core/search
    • None
    • New

    Description

      Back in Lucene 2.9, I hardcoded NRQ to always use filter rewrite based on the precisionStep. This is bogus and contradicts our autodetection (which may need some overhaul now in Lucene 4.0).

      If a query rewrites to only one term, using filter rewrite is stupid and slows down a lot, it can do a simple CSQ(TermQuery()) which is incredibly fast.

      This issue will remove the line from the CTOR.

      Attachments

        1. LUCENE-4235.patch
          2 kB
          Uwe Schindler
        2. LUCENE-4235.patch
          4 kB
          Uwe Schindler

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: