Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 5656 invoked from network); 25 Mar 2008 19:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2008 19:33:04 -0000 Received: (qmail 8940 invoked by uid 500); 25 Mar 2008 19:32:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 8903 invoked by uid 500); 25 Mar 2008 19:32:57 -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 8892 invoked by uid 99); 25 Mar 2008 19:32:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 12:32:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 19:32:09 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 8174771C324; Tue, 25 Mar 2008 12:32:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 7DADD71C032 for ; Tue, 25 Mar 2008 12:32:28 -0700 (PDT) Date: Tue, 25 Mar 2008 12:32:28 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Improving Index Search Performance In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : *We also read in one of the posts that we should use bitSet.set(doc) : instead of calling searcher.doc(id). But we are unable to to understand how : this might help in our case since we will anyway have to load the document : to get the other required field(company_id). Also we observed that the : searcher is actually using only 1G RAM though we have 4G allocated to it. in addition to Paul's previous excellent suggestion, note that if: * companyId is a single value field (ie: no document has more then one) * companyId is indexed you can use the FieldCache to lookup the compnayId for each doc. on the aggregate this will most likely be much faster then accessing the stored fields. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org