Just realized that the part should also be grouped, so checked
that this variation also works:
qtxt = "some text AND ( AUTHOR_NAME:krish OR EMPLOYEE_NAME:krish )";
---> field:some +field:text +(AUTHOR_NAME:krish EMPLOYEE_NAME:krish)
qtxt = "(some text) AND ( AUTHOR_NAME:krish OR EMPLOYEE_NAM
I think the problem might be in the part.
At least with Lucene 2.0, parsing result is as expected -
String qtxt = "some text AND ( AUTHOR_NAME:krish OR EMPLOYEE_NAME:krish
)";
Query q = new QueryParser("field",new WhitespaceAnalyzer()).parse(qtxt);
System.out.println(q);
--> field:some +
Krishnendra Nandi wrote:
Can anybody help me out on this ..?
I have to search for a particular value over multiple fields and need to
know if grouping is allowed over multiple fields
eg.
AND ( AUTHOR_NAME:krish OR EMPLOYEE_NAME:krish )
Introducing paranthesis "(" is giving me lexica
Hi All,
Can anybody help me out on this ..?
I have to search for a particular value over multiple fields and need to
know if grouping is allowed over multiple fields
eg.
AND ( AUTHOR_NAME:krish OR EMPLOYEE_NAME:krish )
Introducing paranthesis "(" is giving me lexical error
Thanks and