Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 49741 invoked from network); 1 Dec 2004 17:11:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 17:11:30 -0000 Received: (qmail 45270 invoked by uid 500); 1 Dec 2004 17:11:02 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 45225 invoked by uid 500); 1 Dec 2004 17:11:01 -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 45169 invoked by uid 99); 1 Dec 2004 17:11:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from fork7.mail.Virginia.EDU (HELO fork7.mail.virginia.edu) (128.143.2.177) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Dec 2004 09:10:59 -0800 Received: from localhost (localhost [127.0.0.1]) by fork7.mail.virginia.edu (Postfix) with ESMTP id F03EA1F5197 for ; Wed, 1 Dec 2004 12:10:54 -0500 (EST) Received: from fork7.mail.virginia.edu ([127.0.0.1]) by localhost (fork7.mail.virginia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24914-08 for ; Wed, 1 Dec 2004 12:10:54 -0500 (EST) Received: from [128.143.167.108] (d-128-167-108.bootp.Virginia.EDU [128.143.167.108]) by fork7.mail.virginia.edu (Postfix) with ESMTP id B39CF1F51E7 for ; Wed, 1 Dec 2004 12:10:54 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <1101918718.3318.2.camel@localhost> References: <20041201162700.71866.qmail@web12702.mail.yahoo.com> <1101918718.3318.2.camel@localhost> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Document-Map, Hits-List Date: Wed, 1 Dec 2004 12:11:04 -0500 To: "Lucene Users List" X-Mailer: Apple Mail (2.619) X-UVA-Virus-Scanned: by amavisd-new at fork7.mail.virginia.edu X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Dec 1, 2004, at 11:31 AM, Luke Francl wrote: > I do a similar thing, creating a List of asset references from a field > in each Lucene Document in my Hits list (actual data for display > retrieved from a separate datastore). I was not aware of any > performance > problems from doing this, but now I am wondering about the > implications. The performance "concern" (lets not say "problem") is when you get 10,000,000 (or so :) results back from a search. No user wants to see all of that, only the first 20, perhaps. Calling Hits.doc(i) pulls the document data from the index and populates a Document instance. There is file I/O involved, and doing lots of unnecessary Hits.doc(i) calls may potentially be noticeable. If you're only getting 100 hits back then you'll likely not even notice. (all numbers quoted here are just random figures - don't quote me on actual performance numbers :). In my current application, I have a paging feature. Each new page does a search again using the same query, but I only iterate through the 20 that should display on that page and build a highlighted data structure to hand to the presentation of only the appropriate ones for the range. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org