Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 27696 invoked from network); 3 Nov 2005 14:46:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Nov 2005 14:46:37 -0000 Received: (qmail 42759 invoked by uid 500); 3 Nov 2005 14:40:21 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 31740 invoked by uid 500); 3 Nov 2005 14:38:53 -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 28723 invoked by uid 99); 3 Nov 2005 14:37:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 06:37:46 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of shoren@gmail.com designates 64.233.162.192 as permitted sender) Received: from [64.233.162.192] (HELO zproxy.gmail.com) (64.233.162.192) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 06:37:21 -0800 Received: by zproxy.gmail.com with SMTP id c3so185211nze for ; Thu, 03 Nov 2005 06:37:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=pUiD2fWCR9ltgBlJR3jsD9zbiy9/x2dtzcJHQTk04ZISZGjXuERe1xNtSJJwHjMa4/kp6p0VRuFm0AkWoj53NyIPyOXGZcthJoYtRuKtcxigTQrdufZiyS8p1TNrgqGcA1yuNtlX1pyTcaPnmRdvnDXeDNpbiRBmuVMKcvSez0U= Received: by 10.36.41.2 with SMTP id o2mr376213nzo; Thu, 03 Nov 2005 06:37:05 -0800 (PST) Received: by 10.36.89.12 with HTTP; Thu, 3 Nov 2005 06:37:05 -0800 (PST) Message-ID: Date: Thu, 3 Nov 2005 16:37:05 +0200 From: Oren Shir Reply-To: shoren@alum.cs.huji.ac.il To: java-user@lucene.apache.org Subject: Reverse sorting by index order MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12336_12391438.1131028625182" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_12336_12391438.1131028625182 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, If I understand correctly, when sorting by Sort.INDEXORDER the oldest documents that were added to the index will be returned first. I want the reverse, because I'm more interested in newer documents. 1) Is there a simple way? 2) Will going over the Hits object in reverse order be much more consuming? Thanks, Oren Shir ------=_Part_12336_12391438.1131028625182--