Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 51099 invoked from network); 31 Oct 2002 13:55:22 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 31 Oct 2002 13:55:22 -0000 Received: (qmail 24257 invoked by uid 97); 31 Oct 2002 13:56:11 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 24236 invoked by uid 97); 31 Oct 2002 13:56:11 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 24224 invoked by uid 98); 31 Oct 2002 13:56:10 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-Id: <5.1.0.14.2.20021031084610.00b622e0@pop3.obs.com> X-Sender: eotoole@pop3.obs.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 31 Oct 2002 08:54:00 -0500 To: "Lucene Users List" From: "Eoin O'Toole" Subject: Alphabetical sorting of results In-Reply-To: <200210131240.g9DCecfS090467@smtpzilla3.xs4all.nl> References: <20021013021834.68455.qmail@web40208.mail.yahoo.com> <20021013021834.68455.qmail@web40208.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am indexing documents (about 7 different document types) and must display the results alphabetically by title field... which is generally not one of the search fields. Currently I am calling hits.get(i) on each document to find the title, and then sorting by title. Sort is fast, but calling hits.get(i) n times is too slow beyond about 400 objects... and this approach means I have to do a "full scan" of the Hits collection. Anyone have any suggestions/strategies on solving this? (Or is there functionality already in place I have overlooked?) Thanks for any input, Eoin -- To unsubscribe, e-mail: For additional commands, e-mail: