://lucene.472066.n3.nabble.com/Querying-the-Query-object-tp549970p4033986.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional
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
: 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 "
What makes you think the query needs to be rewritten to extract terms?
Not the case...unless you want to extract Terms from say, a Wildcard or
Fuzzy query. In that case you need an IndexReader however, as the terms
in the Wildcard/Fuzzy query are determined by what is in your index...
I am als
Hi,
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 recursive parsing - even if there are no terms for a
query, I sti