Lucene query syntax, covered in Chapter 5, Searching, has the following Boolean operators: AND
, OR
, NOT
, &&
, and ||
with leading +
or -
. Here is an example:
{!lucene df=title q.op=$myop} "phrase query slop"~2 w?ldcard* fuzzzy~0.7 -(updatedAt:[* TO NOW/DAY-2YEAR] +boostMe^5)