Re: Grouping over multiple fields

2006-07-25 Thread Doron Cohen
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

Re: Grouping over multiple fields

2006-07-25 Thread Doron Cohen
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 +

Re: Grouping over multiple fields

2006-07-25 Thread Miles Barr
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

Grouping over multiple fields

2006-07-25 Thread Krishnendra Nandi
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