lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: SV: Sort problematics
Date Thu, 18 May 2006 10:07:32 GMT

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ån: Yonik Seeley [mailto:yseeley@gmail.com]
> Skickat: on 2006-05-17 16:31
> Till: java-user@lucene.apache.org
> Ämne: Re: Sort problematics
>
>
>
> On 5/17/06, Marcus Falck <marcus.falck@observer.se> 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 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
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message