From java-user-return-53266-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Tue Jul 17 10:54:31 2012 Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A55FCDF2 for ; Tue, 17 Jul 2012 10:54:31 +0000 (UTC) Received: (qmail 2662 invoked by uid 500); 17 Jul 2012 10:54:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 1983 invoked by uid 500); 17 Jul 2012 10:54:28 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 1949 invoked by uid 99); 17 Jul 2012 10:54:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2012 10:54:27 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [98.139.212.171] (HELO nm12.bullet.mail.bf1.yahoo.com) (98.139.212.171) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Jul 2012 10:54:19 +0000 Received: from [98.139.212.145] by nm12.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jul 2012 10:53:58 -0000 Received: from [98.139.211.200] by tm2.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jul 2012 10:53:58 -0000 Received: from [127.0.0.1] by smtp209.mail.bf1.yahoo.com with NNFMP; 17 Jul 2012 10:53:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1342522438; bh=egeZFDeSCDFfdDsmI0WixNuVncZJ/TP+38pz/UKbEqo=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE; b=6i8cHszGviWcXslGT2n3kJb/qEcvWt3GYpEp3MFKxIfP1K05tJ2nFaf2k467aGu8QSWvcJQhhkvZhvpUUx8ebIX/r2PxV/O3gl+uzaZGD23+nwdRNMErjhniKj+uGc07g80a4PxBjZ0zHyvyXqOlJsmnSHeWZNxZaq1dsRTumfc= X-Yahoo-Newman-Id: 92469.79671.bm@smtp209.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6.wvNg4VM1mKJPhYtBeHsFvvBq8Hq32kZ_zUui_ydJUrWxQ FDh8._WFluOp_hi9kjUCSzTPiH4T94Aj.0uwI6gP9uD_S8YQ19LmmLtuJZfA dOKIX9CqxI5g7rIImr_gC_CSNYlPxgPBMSuwnbo7f3ZQ8ekq3WzM5b.vT5_P Ka3CGuSbVKoXZMdPogscajXVxx_wmyyvcOJwg4u4wau3zVnw1rjQhUon1wRT iTsyWf296Anz_LlQQQ7ABphjXGpX7HWlsLJo.C344WwEADYYaGr5Mgo0Zo6o FeFyFE.S_qluShIIhNVXhgsUv2QAFMeDLj9Q1pGDNGXkumiLy9W6Wf28ir1m TGHI4s6V70Jusc7_wWxJmYYph4kgrS90i69VIfkmaA494Bxmt7xdUo_ASnjw 257AigLVv6R9gR0BL1uR1Rj1AnU0MTqa8F88xhCkL09k9Kr2XxAdWFZ3cT9b 8R1dG0_6OeOZClA-- X-Yahoo-SMTP: JObyHkuswBBrNSLZp.Ycd7Boqpr_GQ-- Received: from GaneshM (emailgane@121.244.159.130 with login) by smtp209.mail.bf1.yahoo.com with SMTP; 17 Jul 2012 03:53:57 -0700 PDT Message-ID: From: "Ganesh" To: Subject: Multiple sort field Date: Tue, 17 Jul 2012 16:23:51 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Hello all, I have more than one record having same time stamp. When i sort by date = time in decending order, the set of records which have same time stamp = are displayed in the order of insertion. Basically it is displayed with = asscending order of docid. But i want the reverse of that. Consider the below set of records. record_1 201207170101 record_2 201207170101 record_3 201207170102 record_4 201207170102 After search, it displays the results in below order record_3 201207170102 record_4 201207170102 record_1 201207170101 record_2 201207170101 But i want, sort on date time and again sort on docid in reverse order. record_4 201207170102 record_3 201207170102 record_2 201207170101 record_1 201207170101 Is it good to use multiple sort fields? Using sort on docid will consume = any memory? Is there any other way out to acheive this. Regards Ganesh --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org