Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 75965 invoked from network); 12 Oct 2005 17:16:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2005 17:16:31 -0000 Received: (qmail 59133 invoked by uid 500); 12 Oct 2005 17:16:29 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 59104 invoked by uid 500); 12 Oct 2005 17:16:28 -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 59093 invoked by uid 99); 12 Oct 2005 17:16:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2005 10:16:26 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 08C5A515 for ; Wed, 12 Oct 2005 19:16:05 +0200 (CEST) Message-ID: <1318318705.1129137365011.JavaMail.jira@ajax.apache.org> Date: Wed, 12 Oct 2005 19:16:05 +0200 (CEST) From: "Luc Vanlerberghe (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-453) Using MultiSearcher and ParallelMultiSearcher can change the sort order. In-Reply-To: <1843071619.1129136824726.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-453?page=all ] Luc Vanlerberghe updated LUCENE-453: ------------------------------------ Attachment: FieldDocSortedHitQueue.diff This fixes the case where both Strings are null. > Using MultiSearcher and ParallelMultiSearcher can change the sort order. > ------------------------------------------------------------------------ > > Key: LUCENE-453 > URL: http://issues.apache.org/jira/browse/LUCENE-453 > Project: Lucene - Java > Type: Bug > Components: Search > Versions: CVS Nightly - Specify date in submission > Environment: Checked with revision 314961 on 2005-10-12 > Reporter: Luc Vanlerberghe > Attachments: FieldDocSortedHitQueue.diff, TestSort.diff > > When using multiple sort criteria the first criterium that indicates a difference should be used. > When a field does not exist for a given document, special rules apply. > From what I see in the code, it is sorted as 0 for integer and float fields, and null Strings are sorted before others. > This works correctly in both Lucene 1.4.3 and in trunk as long as you use a single IndexSearcher (except perhaps in special cases, see other bug reports like LUCENE-374). > However, in MultiSearcher and ParallelMultiSearcher, the results of the separate IndexSearchers are merged and there an error occurs. > The bug is located in FieldDocSortedHitQueue. > It can even be demonstrated by passing a single indexSearcher to a MultiSearcher. > TestCase and patch follow. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org