In addition to the Lucene range syntax, the LucidWorks query parser supports the standard collection of relational operators (also known as comparative operators, '==', '!=', '<', '<=', '>=', and '>'), for example:
- Nevada politics >= dateCreated: 2003
- Nevada politics dateCreated: >= 2003
Whitespace may be freely used both before and after a relational operator.
Other term prefix modifiers, such as a field name and term keyword options, can be combined with a relational operator, in any order. For example, the following queries are equivalent:
- cat nosyn:body: < dog
- cat < nosyn:body: dog
- cat nosyn:body: <dog
- cat nosyn: <body: dog
- cat nosyn: < body: dog
- cat nosyn: body: < dog
- cat nosyn: body: <dog
The '==' and '!=' relational operators are equivalent to the '+' and '-' term operators. So, these queries are equivalent:
- cat +dog -fox
- cat ==dog !=fox
- cat == dog != fox