Lucene "Or Queries"

lucene, search

Solution

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

Problem

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.

Original source