lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: How to do analysis when creating a query programmatically?
Date Thu, 18 May 2006 13:38:41 GMT

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message