Yes, that sounds like what I was looking for! Thanks.
Chris Hostetter wrote:
: Is there any way to find out if an instance of Query has any terms within it?
: I have a custom parser (QueryParser does not do everything I need) and it
: somtimes creates empty BooleanQuerys. (This happens as a side effect of
so you're problem is not "does a Query have any terms in it" it's "does a
BooleanQuery have any clauses in it?" ... booleanQuery.clauses().size()
will answer that question for you.
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]