Hello,

Yes, I found about the non static parse method just a while after writing my 1st e-mail, thank you ! It does sound like a better way to use the queryParser indeed.

Cheers,

Norbert

Le 23/01/2015 16:21, Kostka Bořivoj a écrit :

Hello,

I never used QueryParser::parse static method so I'm not sure, but if you pass a complex query as first parameter it should return correct Query object

Please note this static method is marked /** For backward compatibility */ in source code, so better way is to create QueryParser object

and call member parse(const TCHAR* _query) method. This avoid creation of new parser object for each query you parse so it is a bit more efficient.

Borek



--
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to