Re: Querying the Query object

2013-01-16 Thread balaji.gandhi
Hi, I am trying to do something similar:- Eg. Input: (name:John AND name:Doe) Output: ((firstName:John OR lastName:John) AND (firstName:John OR lastName:John)) How can I extract the fields, change them and repackage the query? Thanks, Balaji -- View this message in context: http://lu

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