Use "AND" and "OR" operator in one query

Hi,

I need to do two kind of searches in one search , using "AND" and "OR"
operator. The sort result should be with "AND" before "OR" operator.

Is it possible?

Tks.

--

Lucene doesn't apply any precedence to AND/OR operators so you need to wrap
your conditionals in parenthesis :

test:(some AND stuff) OR (some AND other)

On Thu, Dec 13, 2012 at 5:45 AM, Boaz Trindade boaz.trindade@gmail.comwrote:

Hi,

I need to do two kind of searches in one search , using "AND" and "OR"
operator. The sort result should be with "AND" before "OR" operator.

Is it possible?

Tks.

--

--