tags:

views:

187

answers:

1

Hi, I am new in Lucene, I am trying to make a search something like this

 content="some thext" and (id ="A" or id="B" or id="c")

I am really lost with that, could you help me

Thank you.

+3  A: 

I believe the "Grouping" section in the Query Parser Syntax documentation provides the answer:

(jakarta OR apache) AND website

I suspect you should make your operators (and, or) upper case. As well, I don't think you can use the equals operator (use a colon instead).

content:"some thext" AND (id:"A" OR id:"B" OR id:"c")
Adam Paynter
Thank you... it was so successful your help
Ivan