Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 7492 invoked from network); 13 Nov 2008 03:14:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2008 03:14:06 -0000 Received: (qmail 6447 invoked by uid 500); 13 Nov 2008 03:14:12 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 6388 invoked by uid 500); 13 Nov 2008 03:14:12 -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 6379 invoked by uid 99); 13 Nov 2008 03:14:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 19:14:12 -0800 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, 13 Nov 2008 03:13:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50E05234C25D for ; Wed, 12 Nov 2008 19:13:44 -0800 (PST) Message-ID: <1118136685.1226546024330.JavaMail.jira@brutus> Date: Wed, 12 Nov 2008 19:13:44 -0800 (PST) From: "Mark Miller (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-548) Sort bug using ParallelMultiSearcher In-Reply-To: <4950118.1145508094301.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-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647170#action_12647170 ] Mark Miller commented on LUCENE-548: ------------------------------------ It won't work with ParallelMultiSearcher and I agree that its not really worth it for MultiSearcher - I've seen more than once...the way to do it is not use auto. I'd like to get this issue resolved though, so lets resolve it 'won't fix', or I'll add the 'fix' to MultiSearcher. > Sort bug using ParallelMultiSearcher > ------------------------------------ > > Key: LUCENE-548 > URL: https://issues.apache.org/jira/browse/LUCENE-548 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 1.9 > Environment: Linux FC2 Java 1.4.9 > Reporter: dan > Priority: Minor > > >>>>> Output: > java.lang.ClassCastException: java.lang.String > at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:119) > at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:61) > at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:271) > >>>>> Input: > - This only occurs when searching more than one index using ParallelMultiSearcher > - I use the signature new Sort( "date", true) > - The values in dates are strings in the form 20060419 > - The call to getType in FieldDocSortedHitQueue misinterprets the value as an INT, then the exception is thrown > >>>>> Available workaround > - I use the the signature new Sort(new SortField( "date", SortField.STRING, true)) and the problem goes away. -- 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