lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksander M. Stensby" <aleksander.sten...@integrasco.no>
Subject Re: IndexSearcher in Servlet
Date Wed, 28 Jun 2006 12:32:26 GMT
You have to re-init the searcher / reader object. You can re-init the  
reader object that the searcher uses, without re-initing the searcher  
object itself, as stated earlier here

On Wed, 28 Jun 2006 14:23:21 +0200, heritrix.lucene  
<heritrix.lucene@gmail.com> wrote:

> o o no
> I mean the searching would be fast or not... But now i have tested. The
> result that i found reveals that there would be no difference in terms of
> searching speed.
> But there is another thing that i want to ask. What if the index is  
> changed
> in between.
>
> Will the indexReader give the results with updated index ???
> OR
> Will the IndexSearcher give the results with updated index ???
> OR
> no matter what we are using we'll have to re-initialize either ??
>
> Thanks and Regards,
>
> On 6/28/06, Erik Hatcher <erik@ehatchersolutions.com> wrote:
>>
>>
>> On Jun 28, 2006, at 6:53 AM, heritrix.lucene wrote:
>> > Is there any difference in terms of speed between IndexReader and
>> > IndexSearcher??
>>
>> I'm assuming you mean is there any difference in speed in how you
>> construct an IndexSearcher.... no.
>>
>>         Erik
>>
>>
>> >
>> >
>> >
>> > On 6/27/06, Erik Hatcher <erik@ehatchersolutions.com> wrote:
>> >>
>> >>
>> >> On Jun 27, 2006, at 10:32 AM, Fabrice Robini wrote:
>> >> > That's also my case...
>> >> > I create a new IndexSearcher at each query, but with a static and
>> >> > instanciated Directory.
>> >> >
>> >> > New IndexSearcher(myDirectory)
>> >> >
>> >> > It seems to be OK... am I wrong ?
>> >>
>> >> You may be "ok" given your query patterns, but you won't benefit from
>> >> Lucene internal caching unless you use a single IndexSearcher (or
>> >> IndexReader, as just pointed out).
>> >>
>> >>         Erik
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>>
>>



-- 
Aleksander M. Stensby
Software Developer
Integrasco A/S
aleksander.stensby@integrasco.no
Tlf.: +47 41 22 82 72

---------------------------------------------------------------------
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