Re: How to combine multiple fielded queries in Lucene

2005-10-27 Thread msftblows
You can write an expansionQuery class and enumerate through the fields and send in a query that does that. I did something like that not long ago, it would send a query that would first be "" then AND then OR... -Original Message- From: Xin Herbert Wu <[EMAIL PROTECTED]> To: java-use

Re: How to combine multiple fielded queries in Lucene

2005-10-27 Thread Erik Hatcher
On 27 Oct 2005, at 11:32, Peter Kim wrote: If you're using the QueryParser, you just prefix the field-specific part with the field. For example, the query in your email should be submitted to the query parser as: (Title:"baseball" OR Summary:"white sox") AND Publication_date:"199501 TO 200

RE: How to combine multiple fielded queries in Lucene

2005-10-27 Thread Peter Kim
If you're using the QueryParser, you just prefix the field-specific part with the field. For example, the query in your email should be submitted to the query parser as: (Title:"baseball" OR Summary:"white sox") AND Publication_date:"199501 TO 200412" or if you're creating is programmatically, th