lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: two IndexSearchers on one dir?
Date Sat, 01 Jan 2011 02:23:12 GMT
It's not a problem, but it's best to share the underlying reader. You
could open your short-lived searcher by getting a reader
via getIndexReader() on your long-lived searcher....

What's the underlying use-case you're trying to make happen?

Best
Erick

On Fri, Dec 31, 2010 at 8:01 PM, Paul Libbrecht <paul@hoplahup.net> wrote:

>
> Hello list,
>
> is it a good or bad thing to open to index-searchers on FSDirectories of
> the same path?
>
> (namely, one short-lived, one long-lived).
>
> thanks in advance
>
> paul
> ---------------------------------------------------------------------
> 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