Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 57415 invoked from network); 25 Oct 2007 22:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 22:18:37 -0000 Received: (qmail 13642 invoked by uid 500); 25 Oct 2007 22:18:22 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 13597 invoked by uid 500); 25 Oct 2007 22:18:22 -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 13586 invoked by uid 99); 25 Oct 2007 22:18:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 15:18:22 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 22:18:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3C87D71424E for ; Thu, 25 Oct 2007 15:17:54 -0700 (PDT) Message-ID: <2558358.1193350674245.JavaMail.jira@brutus> Date: Thu, 25 Oct 2007 15:17:54 -0700 (PDT) From: "Michael Klatt (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1034) Add new API method to retrieve document field data in a batch In-Reply-To: <29265059.1193350673570.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Klatt updated LUCENE-1034: ---------------------------------- Attachment: MultiReader.java.patch > Add new API method to retrieve document field data in a batch > ------------------------------------------------------------- > > Key: LUCENE-1034 > URL: https://issues.apache.org/jira/browse/LUCENE-1034 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Affects Versions: 2.2 > Environment: JDK 1.5.X, Linux & FreeBSD > Reporter: Michael Klatt > Priority: Minor > Attachments: FieldsReader.java.patch, IndexReader.java.patch, MultiReader.java.patch, SegmentReader.java.patch > > > I've read in many forums about people who need to retrieve document data for a large number of search results. In our case, we need to retrieve up to 10,000 results (sometimes more) from an index of over 100 million documents (our index is about 65 GB). This can sometimes take a couple minutes. > In one of my attempts to improve performance, I modified the IndexReader interface to provide a method which looks like: > public Document[] documents(int[] n, FieldSelector fieldSelector); > Instead of retrieving document data one at a time, I would request data for many document numbers in one shot. The idea was to optimize the seeks on disk so that in the FieldsReader, the seeks for the indexStream would be done first, then all the seeks in the fieldStream would be completed. For a large number of documents, this yielded a 20% speed improvement. The improvement was not as much as I was looking for, but I felt that the improvement was significant enough that I would request changes to the IndexReader interface. > I'm providing patches for the files that I needed to change for our application. These patches are against the 2.2 release. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org