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

Remove special handling of pure negative Filters in BooleanFilter, disallow pure negative queries in BooleanQuery

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None
    • New, Patch Available

    Description

      We should at least in Lucene 4.0 remove the hack in BooleanFilter that allows pure negative Filter clauses. This is not supported by BooleanQuery and confuses users (I think that's the problem in LUCENE-3450).

      The hack is buggy, as it does not respect deleted documents and returns them in its DocIdSet.

      Also we should think about disallowing pure-negative Queries at all and throw UOE.

      Attachments

        1. LUCENE-3451.patch
          13 kB
          Uwe Schindler
        2. LUCENE-3451.patch
          13 kB
          Uwe Schindler
        3. LUCENE-3451.patch
          14 kB
          Uwe Schindler
        4. LUCENE-3451.patch
          6 kB
          Uwe Schindler
        5. LUCENE-3451.patch
          3 kB
          Uwe Schindler

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: