This would not make much of a difference. I would guess that you have one additional "wrapping" boolean query if you use MultiFieldQueryParser. For query "foo AND bar" the MFQueryParser creates +(fname:foo) +(fname:bar) and QueryParser would create +fname:foo +fname:bar so in this case one level of BooleanQuery more than QueryParser.
simon On Fri, Jul 31, 2009 at 3:19 PM, Ian Lea<ian....@gmail.com> wrote: > I'd guess there wouldn't be any difference, but haven't tried it. Try > it out and see what query.toString() says in each case. > > > -- > Ian. > > > On Fri, Jul 31, 2009 at 1:37 PM, Paul Taylor<paul_t...@fastmail.fm> wrote: >> Is there any difference between using QueryParser and MultiFieldQueryParser >> when have single default search field ? >> >> Depending on how many default search fields on an searching an index I >> select which of the two QueryParsers to use, but does it mater if I just use >> MultiFIeldQueryParser all the time >> >> Paul >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org