lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beard, Brian" <>
Subject RE: Boolean Query search performance
Date Mon, 10 Mar 2008 13:09:01 GMT
AHA! That is consistent with what is happening now, and explains the

The original post of parens around each term was because I was adding
them as separate boolean queries, but now with using just the clause the
parens is around the entire clause with the boost.

-----Original Message-----
From: Chris Hostetter [] 
Sent: Friday, March 07, 2008 3:23 PM
Subject: Re: Boolean Query search performance

: > additional parens normally indicates that you are actually creating
: > extra layer of BooleanQueries (ie: a BooleanQuery with only one
clause for

: look here,
: parens will also be add is each term has a boost value larger than

i think you are missreading that code.  the "needParens" variable adds 
parens arroudn the *entire* "this" BooleanQuery if "this" has a boost or
non 0 minShouldMatch value ... BooleanQuery.toString only adds parens 
arround individual clauses if those clauses are themselves boolean 
queries ... which is the point i was making.


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

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

View raw message