On Wed, Apr 15, 2015 at 5:55 AM, Bruno Albuquerque <[email protected]> wrote:
> Is it safe to do concurrent searches with a single IndexSearcher (i.e.
> calling Hits() at the same time from multiple threads)?

IndexSearchers are not safe for concurrent use across multiple threads.
However, they have a relatively small memory footprint, because they are all
referencing the same shared files cached by the OS.  It is fine to create an
IndexSearcher per thread.

Marvin Humphrey

Reply via email to