Thanks very much Erik. The QueryParser method was pretty useful in writing my own one.
-Venu -----Original Message----- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 7:09 PM To: java-user@lucene.apache.org Subject: Re: How to do analysis when creating a query programmatically? On May 18, 2006, at 8:08 AM, Satuluri, Venu_Madhav wrote: > Is there any way to run my Query object through my analyzer? Or is > there > another solution? But of course. Have a look at the source code to QueryParser.getFieldQuery() - it does this very thing. I'm glad to see more folks creating queries programatically using a blend of QueryParser, analysis, or just plain ol' StringTokenizer. The expressiveness of queries is of the utmost importance, and QueryParser is pretty BASIC. Most of the applications I've worked on have used custom techniques for creating the Query. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]