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
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