Ganesh wrote:
Mike in of his replies to the thread "Faceted search using Lucene",
gave the following code review comment
* You are creating a new Analyzer & QueryParser every time, also
creating unnecessary garbage; instead, they should be created once
& reused.
This made me to ask the below questions.
Is QueryParser and Analyzer thread safe?
Actually QueryParser is *not* thread-safe, but Lucene's core analyzers
are.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org