lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: instantiated index in 2.4
Date Mon, 15 Sep 2008 16:51:14 GMT

15 sep 2008 kl. 18.45 skrev Cam Bazz:

> I have been looking at instantiated index in the trunk. Does this come
> with a searcher?

Pass an InstantiatedIndexReader to the constructor of an IndexSearcher.

> Are the adds reflected directly to the index?

Yes. An InstantiatedIndexReader is always current. You will probably  
still have to reconstruct your searcher. I never really looked in to  
what happends if you don't.

Recommended use is that you consider an InstantiatedIndex immutable,  
mainly because it is lockless.


      karl

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