Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 28743 invoked from network); 1 Jun 2006 04:38:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jun 2006 04:38:49 -0000 Received: (qmail 20187 invoked by uid 500); 1 Jun 2006 04:38:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 19789 invoked by uid 500); 1 Jun 2006 04:38:42 -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 19778 invoked by uid 99); 1 Jun 2006 04:38:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2006 21:38:42 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.38.55] (HELO web50301.mail.yahoo.com) (206.190.38.55) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 31 May 2006 21:38:42 -0700 Received: (qmail 35951 invoked by uid 60001); 1 Jun 2006 04:38:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=eDuURcJLQphnxJ/IBiunL3SFzWS6qjl07eNXNWK48ljaCNsJ8Hval29AnxAqK4xwf/q18hOG6KdXLes8JEQ0mSY9h86gX50qdHV5fXje417UBPO30Zjnmo7H8SzMTEhUovGPsJYri6XAT8JN8a6oWJgNxtZsQUKoUT0+Yp8TcKY= ; Message-ID: <20060601043821.35949.qmail@web50301.mail.yahoo.com> Date: Wed, 31 May 2006 21:38:21 -0700 (PDT) From: Otis Gospodnetic Reply-To: Otis Gospodnetic Subject: Re: preloading / "warming up" the index To: java-user@lucene.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Look in your index directory and look for a .tii file. That file is read in RAM (if there is enough of it. If there is not, you will see OOM). What Monsur was talking about is related to sorting and warming up of FieldCache instances. If you don't sort your results by criteria other than the default relevance, you can ignore FieldCache. Any query should cause Lucene to read the whole .tii in RAM. If you do not see a .tii file in your index directory, and instead see one or more .cfs file, you are using the compound index format. Run IndexReader as a java app (e.g. java org.apache.lucene....IndexReader /your/index/dir/file(?)) to get a listing of individual index files inside a single cfs file. Otis ----- Original Message ---- From: Charles Mi To: java-user@lucene.apache.org Sent: Wednesday, May 31, 2006 11:55:44 PM Subject: Re: preloading / "warming up" the index Thanks for the advice guys... i'm still not entirely clear on what a search causes Lucene to do with respect to warming up/caching portions of the index in memory. If I warm up lucene using a search for "apple", does Lucene load the entire inverted index into Memory, or just the part of the index that contains the entry for "apple" ? Basically I'd like to make sure that the entire inverted index (or as much as possible) is preloaded into memory, so if I issue a subsequent search for "microsoft", it will be fast. Does Lucene have any mechanism for preloading the inverted index into memory? Also is there a way to figure out what percentage of lucene's data storage is occupied by the inverted index, and what percentage is occupied by the other info, like storing the documents' field values and such. Thanks! Charles On 5/31/06, Monsur Hossain wrote: > > When Lucene first issues a query, it caches a hash of sort values (one > value per document, plus a bit more if you are sorting on strings), > which takes a while. Therefore, when our application first starts up, > we issue one query per sort type. As I understand, it doesn't matter > what the query is or how complicated it is. > > Monsur > > > > On 5/31/06, Charles Mi wrote: > > Is there a way to preload the index into memory when the process starts? > > Basically I want to warm up the index before processing user queries. > What > > are some recommended ways to do this? Thanks. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org