Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 67921 invoked from network); 30 Oct 2008 20:57:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2008 20:57:37 -0000 Received: (qmail 58361 invoked by uid 500); 30 Oct 2008 20:57:40 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 58302 invoked by uid 500); 30 Oct 2008 20:57:40 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 58293 invoked by uid 99); 30 Oct 2008 20:57:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 13:57:40 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 20:56:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8324E234C257 for ; Thu, 30 Oct 2008 13:56:44 -0700 (PDT) Message-ID: <1992979569.1225400204535.JavaMail.jira@brutus> Date: Thu, 30 Oct 2008 13:56:44 -0700 (PDT) From: "Paul Elschot (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (LUCENE-1432) BitSet cannot be cast to DocIdSet In-Reply-To: <1352490201.1225366904335.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644102#action_12644102 ] paul.elschot@xs4all.nl edited comment on LUCENE-1432 at 10/30/08 1:55 PM: ---------------------------------------------------------------- This patch should fix the problem. However, the implementation of the bits() method is so inefficient that it might actually motivate users to avoid it. The patch also contains a docIdSetToCache() method with the DocIdSet and the IndexReader as arguments, as discussed at LUCENE-1296. was (Author: paul.elschot@xs4all.nl): This patch should fix the problem. However, the implementation of the bits() method is so inefficient that it might actually motivate users to avoid it. The patch also contains a docIdSetToCache() method with the Filter and the IndexReader as arguments, as discussed at LUCENE-1296. > BitSet cannot be cast to DocIdSet > --------------------------------- > > Key: LUCENE-1432 > URL: https://issues.apache.org/jira/browse/LUCENE-1432 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.4 > Reporter: Wouter Heijke > Attachments: LUCENE-1432.patch > > > 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. -- 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: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org