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

BitSet cannot be cast to DocIdSet

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      We recently upgraded from Lucene 2.3.1 to 2.4.0.
      We left the code as-is apart from the needed changes to the package name for snowball, everything seems to run as before... Until yesterday when we started noticing the following stacktrace:

      java.lang.ClassCastException: java.util.BitSet cannot be cast to org.apache.lucene.search.DocIdSet
      org.apache.lucene.search.CachingWrapperFilter.getDocIdSet(CachingWrapperFilter.java:76)
      org.apache.lucene.misc.ChainedFilter.getDocIdSet(ChainedFilter.java:200)
      org.apache.lucene.misc.ChainedFilter.getDocIdSet(ChainedFilter.java:145)
      org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:140)
      org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:112)
      org.apache.lucene.search.Searcher.search(Searcher.java:136)

      Our index is 15gb in size and was made with Lucene 2.4.0.
      The index holds around 36 million (Lucene) documents and 268 million terms.

        Attachments

        1. LUCENE-1432.patch
          2 kB
          Paul Elschot

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              wheijke Wouter Heijke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: