You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Paul Libbrecht <pa...@hoplahup.net> on 2011/01/01 02:01:45 UTC

two IndexSearchers on one dir?

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


Re: two IndexSearchers on one dir?

Posted by Erick Erickson <er...@gmail.com>.
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 <pa...@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
>
>