Re: Querying the Query object

2013-01-16 Thread balaji.gandhi
://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

Re: Querying the Query object

2007-10-08 Thread John Byrne
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

Re: Querying the Query object

2007-10-05 Thread Chris Hostetter
: 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 "

Re: Querying the Query object

2007-10-05 Thread Mark Miller
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

Querying the Query object

2007-10-05 Thread John Byrne
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