lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From heritrix.lucene <heritrix.luc...@gmail.com>
Subject Re: IndexSearcher in Servlet
Date Wed, 28 Jun 2006 10:53:54 GMT
Is there any difference in terms of speed between IndexReader and
IndexSearcher??



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message