Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 76497 invoked from network); 18 May 2006 12:57:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2006 12:57:50 -0000 Received: (qmail 53537 invoked by uid 500); 18 May 2006 12:57:43 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 53515 invoked by uid 500); 18 May 2006 12:57:43 -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 53501 invoked by uid 99); 18 May 2006 12:57:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 05:57:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 05:57:41 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id AD7E233CAEE; Thu, 18 May 2006 08:57:20 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on javelina X-Spam-Level: Received: from [128.143.193.79] (d-128-193-79.bootp.Virginia.EDU [128.143.193.79]) by ehatchersolutions.com (Postfix) with ESMTP id C747233CAE7 for ; Thu, 18 May 2006 08:57:17 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <8834A84C87A2C148AD46921BB8BFC97C01B2814E@S1SE1MAIL.emea1.ad.group> References: <8834A84C87A2C148AD46921BB8BFC97C01B2814E@S1SE1MAIL.emea1.ad.group> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <30BA418C-B2FB-48C7-8705-282E7B656B04@ehatchersolutions.com> Content-Transfer-Encoding: quoted-printable From: Erik Hatcher Subject: Re: SV: SV: SV: Sort problematics Date: Thu, 18 May 2006 08:57:11 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.750) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On May 18, 2006, at 7:04 AM, Marcus Falck wrote: > Yes I know. But the index is changed constantly. Then use Solr :)) Erik > > / Marcus > > -----Ursprungligt meddelande----- > Fr=E5n: Erik Hatcher [mailto:erik@ehatchersolutions.com] > Skickat: den 18 maj 2006 12:52 > Till: java-user@lucene.apache.org > =C4mne: Re: SV: SV: Sort problematics > > > On May 18, 2006, at 6:41 AM, Marcus Falck wrote: >> Yes Erik I'm instantiating a new IndexSearcher for every search. > > Then don't :) You only need a new IndexSearcher instance when the > index itself has changed. > >> >> >> -----Ursprungligt meddelande----- >> Fr=E5n: Erik Hatcher [mailto:erik@ehatchersolutions.com] >> Skickat: den 18 maj 2006 12:08 >> Till: java-user@lucene.apache.org >> =C4mne: Re: SV: Sort problematics >> >> >> On May 18, 2006, at 4:52 AM, Marcus Falck wrote: >>> I have slow subsequent searches. >>> And if i get the cache up and running is it persisted to disc? >> >> No, Lucene's caches are not persisted, only in RAM. Are you using a >> new IndexReader/IndexSearcher for your subsequent searches? If not, >> you're likely not leveraging any caches at all. >> >> Erik >> >> >> >>> >>> /Marcus >>> >>> >>> ________________________________ >>> >>> Fr=E5n: Yonik Seeley [mailto:yseeley@gmail.com] >>> Skickat: on 2006-05-17 16:31 >>> Till: java-user@lucene.apache.org >>> =C4mne: Re: Sort problematics >>> >>> >>> >>> On 5/17/06, Marcus Falck wrote: >>>> I did a quite interesting notice, if i search for IndexId:x >>>> (IndexId is unique) with a sort it still takes very long time, >>>> which >>>> it doesn't without the sort. >>> >>> This will only be the case the first time you sort on a field =20 >>> because >>> a FieldCache entry is created for that field and then cached for >>> subsequent sorts. >>> >>> -Yonik >>> http://incubator.apache.org/solr Solr, the open-source Lucene >>> search server >>> >>> --------------------------------------------------------------------=20= >>> - >>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-user-help@lucene.apache.org >>> >>> >>> >>> >>> --------------------------------------------------------------------=20= >>> - >>> 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 >> >> >> >> >> --------------------------------------------------------------------- >> 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 > > > > > --------------------------------------------------------------------- > 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