Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      BooleanFilter getDISI() method used with QueryWrapperFilter occur NullPointerException,
      if any QueryWrapperFilter not match terms in IndexReader.

      ---------------------------------------------------
      java.lang.NullPointerException
      at org.apache.lucene.util.OpenBitSetDISI.inPlaceAnd(OpenBitSetDISI.java:66)
      at org.apache.lucene.search.BooleanFilter.getDocIdSet(BooleanFilter.java:102)
      at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:551)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:532)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:463)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:433)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:356)
      at test.BooleanFilterTest.main(BooleanFilterTest.java:50)
      ---------------------------------------------------

      null-check below lines.
      ---------------------------------------------------
      res = new OpenBitSetDISI(getDISI(shouldFilters, i, reader), reader.maxDoc());
      res.inPlaceOr(getDISI(shouldFilters, i, reader));
      res = new OpenBitSetDISI(getDISI(notFilters, i, reader), reader.maxDoc());
      res.inPlaceNot(getDISI(notFilters, i, reader));
      res = new OpenBitSetDISI(getDISI(mustFilters, i, reader), reader.maxDoc());
      res.inPlaceAnd(getDISI(mustFilters, i, reader));
      ---------------------------------------------------

      1. LUCENE-3446.patch
        10 kB
        Uwe Schindler
      2. LUCENE-3446.patch
        19 kB
        Uwe Schindler
      3. LUCENE-3446.patch
        18 kB
        Uwe Schindler

        Activity

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Uwe Schindler made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.5 [ 12317877 ]
        Fix Version/s 4.0 [ 12314025 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Attachment LUCENE-3446.patch [ 12496165 ]
        Uwe Schindler made changes -
        Attachment LUCENE-3446.patch [ 12496109 ]
        Uwe Schindler made changes -
        Attachment LUCENE-3446.patch [ 12496090 ]
        Uwe Schindler made changes -
        Assignee Uwe Schindler [ thetaphi ]
        Shuji Umino made changes -
        Field Original Value New Value
        Description BooleanFilter getDISI() method used with QueryWrapperFilter occur NullPointerException,
        if any QueryWrapperFilter not match terms in IndexReader.

        ---------------------------------------------------
        java.lang.NullPointerException
        at org.apache.lucene.util.OpenBitSetDISI.inPlaceAnd(OpenBitSetDISI.java:66)
        at org.apache.lucene.search.BooleanFilter.getDocIdSet(BooleanFilter.java:102)
        at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:551)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:532)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:463)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:433)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:356)
        at test.BooleanFilterTest.main(BooleanFilterTest.java:50)
        ---------------------------------------------------

        null-check below lines.
        ---------------------------------------------------
        res.inPlaceOr(getDISI(shouldFilters, i, reader));
        res.inPlaceNot(getDISI(notFilters, i, reader));
        res.inPlaceAnd(getDISI(mustFilters, i, reader));
        ---------------------------------------------------
        BooleanFilter getDISI() method used with QueryWrapperFilter occur NullPointerException,
        if any QueryWrapperFilter not match terms in IndexReader.

        ---------------------------------------------------
        java.lang.NullPointerException
        at org.apache.lucene.util.OpenBitSetDISI.inPlaceAnd(OpenBitSetDISI.java:66)
        at org.apache.lucene.search.BooleanFilter.getDocIdSet(BooleanFilter.java:102)
        at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:551)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:532)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:463)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:433)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:356)
        at test.BooleanFilterTest.main(BooleanFilterTest.java:50)
        ---------------------------------------------------

        null-check below lines.
        ---------------------------------------------------
        res = new OpenBitSetDISI(getDISI(shouldFilters, i, reader), reader.maxDoc());
        res.inPlaceOr(getDISI(shouldFilters, i, reader));
        res = new OpenBitSetDISI(getDISI(notFilters, i, reader), reader.maxDoc());
        res.inPlaceNot(getDISI(notFilters, i, reader));
        res = new OpenBitSetDISI(getDISI(mustFilters, i, reader), reader.maxDoc());
        res.inPlaceAnd(getDISI(mustFilters, i, reader));
        ---------------------------------------------------
        Shuji Umino created issue -

          People

          • Assignee:
            Uwe Schindler
            Reporter:
            Shuji Umino
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development