lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Harwood (JIRA)" <>
Subject [jira] Commented: (LUCENE-1432) BitSet cannot be cast to DocIdSet
Date Thu, 30 Oct 2008 12:01:45 GMT


Mark Harwood commented on LUCENE-1432:

Does your application code call the deprecated Filter.bits(reader) on the CachingWrapperFilter
This would cause CachingWrapperFilter to cache an old-style bitset but the standard Lucene
search will subsequently call Filter.getDocIdSet(reader) which always expects a DocIdSet to
have been cached.

Ideally CachingWrapperFilter should be capable of recognising and adapting to this mix of
filtering styles - at least while Lucene still maintains support for both Filter.getDocIdSet()
AND Filter.bits().
In the interim, try replace any application code that calls bits() with getDocIdSet() if possible.

> BitSet cannot be cast to DocIdSet
> ---------------------------------
>                 Key: LUCENE-1432
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.4
>            Reporter: Wouter Heijke
> 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
> java.lang.ClassCastException: java.util.BitSet cannot be cast to
>         org.apache.lucene.misc.ChainedFilter.getDocIdSet(
>         org.apache.lucene.misc.ChainedFilter.getDocIdSet(
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message