Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 46994 invoked from network); 8 Dec 2008 15:58:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Dec 2008 15:58:19 -0000 Received: (qmail 73897 invoked by uid 500); 8 Dec 2008 15:58:26 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 73855 invoked by uid 500); 8 Dec 2008 15:58:26 -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 73844 invoked by uid 99); 8 Dec 2008 15:58:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2008 07:58:25 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.198.229 as permitted sender) Received: from [209.85.198.229] (HELO rv-out-0506.google.com) (209.85.198.229) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2008 15:56:55 +0000 Received: by rv-out-0506.google.com with SMTP id f6so1511963rvb.5 for ; Mon, 08 Dec 2008 07:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=qNW1X3ssfjcz4eGbPxl02K3Hz7Qe+Sc+/4IOzk8hp3o=; b=MArEIXewGjvOsux4zZx/0ax5Xs2JzBPQZjgR0Bgq19mOc92j8L6N3THI4DNjSCnnKL OmfqxSOfYo7/eD50SP+r9MKWLZgVfKThYikv/EQLBwE50Pdelfy9vqNPLbKW1FecnOiO O4hgPFaovrbW7AEQzvtLXvgTP8lGLvucbpdW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=QfZI2Rm/18YwfPYBEMSavgFt28WOq8tprYAa9VaSMiMkYzUC+KuJntwadbqmVJAB01 NwIZJBZApNiydcGDBba0rfxIYkr+FjS5+WUki0vQj2EfUL0vdYvgY3445SyXv1mQfp2u cp22WZ9ps8w1844nwLetQBdKBCp2Y037UtqOs= Received: by 10.141.74.18 with SMTP id b18mr1700428rvl.48.1228751863862; Mon, 08 Dec 2008 07:57:43 -0800 (PST) Received: by 10.141.203.20 with HTTP; Mon, 8 Dec 2008 07:57:43 -0800 (PST) Message-ID: <359a92830812080757x1c43ede8y54843688b7815bb@mail.gmail.com> Date: Mon, 8 Dec 2008 10:57:43 -0500 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: TopDocs - Get all docs? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_61923_22780761.1228751863867" References: <359a92830812080628h644e4a5bofd28d7860953b84e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_61923_22780761.1228751863867 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm a great fan of not changing working code for a "might be better sometime in the far future if lots of things change" ... Erick On Mon, Dec 8, 2008 at 10:54 AM, Donna L Gresh wrote: > Erick- > Thanks for the pointer; in my app the difference is between 30 > milliseconds and 45 milliseconds (and this is a once-a-day kind of thing), > but hey it's always worth doing something the better way in case my index > ever gets a whole lot bigger or the use case changes-- thanks. > > Donna L. Gresh > Business Analytics and Mathematical Sciences > IBM T.J. Watson Research Center > (914) 945-2472 > http://www.research.ibm.com/people/g/donnagresh > gresh@us.ibm.com > > > "Erick Erickson" wrote on 12/08/2008 09:28:16 > AM: > > > is empid indexed? If it is this should run *much* faster if you used > > TermEnum/TermDocs to fetch all the empids...... > > > > FWIW > > Erick > ------=_Part_61923_22780761.1228751863867--