Luke Francl wrote:
According to the jGuru FAQ, QueryParser is not thread safe:

http://www.jguru.com/faq/view.jsp?EID=492389

However, this information is several years old. Is this still true?

The answer to the question suggests using a new parser for every thread,
but the QueryParser.parse(String query,String field,Analyzer analyzer) method is static

This method constructs a new query parser each time it is called, so it is thread safe.


> and I don't see any way to set the default field on an
instance of the QueryParser.

Is that what the "f" parameter of the QueryParser(String f, Analyzer a)
constrcutor is for?

Yes.


Doug


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to