lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Re: New to Lucene - some questions about demo
Date Tue, 28 Jul 2009 18:13:50 GMT

Ok, thanks for the clarifications.

When I have some quiet time, I'll try to re-do the tests I did earlier and post back if any

Thanks again,

---- Matthew Hall <> wrote: 
> Oh.. no.
> If you specifically include a fieldname: blah in your clause, you don't 
> need a MultiFieldQueryParser.
> The purpose of the MFQP is to turn queries like this "blah" 
> automatically into this "field1: blah" AND "field2: blah" AND "field3: 
> blah" (Or OR if you set it up properly)
> When you setup the MFQP you specify what fields you want to have this 
> behavior apply to, and can even give each field its own specific analyzer.
> So if in your index you have multiple fields, each of which was created 
> with a different analyzer, you could search these effortlessly in your 
> webapp using the MFQP.
> (If for example you have an exact_contents and a contents field, one 
> where punctuation and capitalization matters, one where it does not)
> Hope that clears things up for you.
> Matt

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

View raw message