Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 95012 invoked from network); 11 Dec 2005 07:35:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Dec 2005 07:35:09 -0000 Received: (qmail 98841 invoked by uid 500); 11 Dec 2005 07:35:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 97813 invoked by uid 500); 11 Dec 2005 07:35:04 -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 97793 invoked by uid 99); 11 Dec 2005 07:35:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Dec 2005 23:35:03 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE 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; Sat, 10 Dec 2005 23:35:03 -0800 Received: (qmail 5100 invoked by uid 60001); 11 Dec 2005 07:34:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qHxmAFGu3EKCTwqwO63XatYFng2+rUmsjjdV1pkZEwJDR/XnixLwjcFpskdaTp6EXkSMho3c3NCb8o50PxHP3GwLeSWlfPaOuzxKhSDRfu4wLLM3VYKrqJ6WbGz3yi0zdnu1qyCvwyUfUvuUvSLTNG2pgTJsWxW3xQY0d2k/DZo= ; Message-ID: <20051211073442.5098.qmail@web50301.mail.yahoo.com> Received: from [69.201.142.21] by web50301.mail.yahoo.com via HTTP; Sat, 10 Dec 2005 23:34:42 PST Date: Sat, 10 Dec 2005 23:34:42 -0800 (PST) From: Otis Gospodnetic Subject: Re: Can I warm-up my search for it's performance? To: java-user@lucene.apache.org In-Reply-To: <48b708490512102330m5ffef0f7l22d349e7ae865546@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Any term will do, although I'd personally choose a very common one. Otis --- Cheolgoo Kang wrote: > Thanks Otis, > > I'm doing exactly what you've said, except the sorting. I'll try it > out immediately. > > Anyway, will the warming up search with ANY term do the same job? Or > should I have to search with the worst term that has the longest > hits? > > On 12/11/05, Otis Gospodnetic wrote: > > Yes you can. Just open an IndexReader/Searcher, say in a separate > > thread, run a search on it, and then swap your previous > > IndexReader/Searcher with the warm one. If you use sorting, make > your > > "background query" with the sort option, so the FieldCaches get > > populated and warmed up. > > > > Otis > > > > --- Cheolgoo Kang wrote: > > > > > Hi, > > > > > > I'm running an index on FSDirectory with 0.4M documents with each > of > > > 7 fields. > > > > > > When I open an IndexReader and an IndexSearcher, the average > search > > > time with hits of 0.2M items (yeah, very common word) takes about > > > 150~250 msec and it's pretty good. But the first time just after > > > opening IndexReader or IndexSearcher, search with the same > keyword > > > takes about 3~4 secs (10 times more than the average) and this > makes > > > our search system looks slow. > > > > > > I think it could be the caching issue with OS and file system. > > > > > > Any way, can I warm our IndexSearcher or IndexReader up to reduce > > > this problem? > > > > > > -- > > > Cheolgoo > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > -- > Cheolgoo > > --------------------------------------------------------------------- > 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