OpenWGA 7.10 - Query languages reference
luceneOperators
Search clauses can be combined with a variety of operators. It is placed either before a clause or between clauses, depending on its nature. The complete syntax of a search query including optional operators would therefor be:
But as we have seen before most queries never have a preceding or "between" operator. In that case default operators are implicitly used by lucene. The default preceding operator is "+" (means, that the clause is positive). The default operator between clauses is "AND" (means that result documents must match both clauses).
The following operators are available:
<preceding-operator><fieldname>:<term> <between operator> <preceding-operator><fieldname>:<term> ...
But as we have seen before most queries never have a preceding or "between" operator. In that case default operators are implicitly used by lucene. The default preceding operator is "+" (means, that the clause is positive). The default operator between clauses is "AND" (means that result documents must match both clauses).
The following operators are available:
Operator | Description | Position |
---|---|---|
AND, && | Combines two clauses so all documents are found that match both clauses. This is a default operator of lucene which is implicitly used if multiple clauses are just divided by space characters without explicit operator. | Between two clauses |
OR, || | Combines two clauses so all documents are found that match either one of them or both clauses. | Between two clauses |
+ | Marks the clause as "positive", i.e. all documents must match the clause. This is a default operator of lucene which is implicitly used when clauses have no preceding operator. | Directly preceding the clause |
NOT, -, ! | Marks the clause as "negative", i.e. all documents must not match the clause. A query may not just consist of negative clauses. | Directly preceding the clause im case of "-" and "!", preceding the clause but divided by a space character from it in case of NOT |