Re: Reusability of QueryParser

2014-01-06 Thread Mindaugas Žakšauskas
Hi, This had helped, thank you Uwe! Regards, Mindaugas On Mon, Jan 6, 2014 at 12:48 PM, Uwe Schindler wrote: > Hi, > > The problem is your Analyzer: As it returns different components for each > field name, the constructor must pass the per field reuse strategy. By > default it uses GLOBAL_RE

RE: Reusability of QueryParser

2014-01-06 Thread Uwe Schindler
Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Mindaugas Žakšauskas [mailto:min...@gmail.com] > Sent: Monday, January 06, 2014 12:34 PM > To: java-user@lucene.apache.org > Sub

Reusability of QueryParser

2014-01-06 Thread Mindaugas Žakšauskas
Hi, I was wondering if a QueryParser can be reused (Lucene ver: 4.6.0)? >From my experiment it looks like it retains some state from the previous query. Isolated example: public class Test { public static void main(String[] args) throws ParseException, IOException { MyAnalyzer analy