Name | Operator | Variation | Examples |
---|---|---|---|
Or | {OPERAND} OR {OPERAND} | Explicit one OR two If OR is the implicit operator one two | |
And | {OPERAND} AND {OPERAND} | Explicit one AND two If AND is the implicit operator one two | |
Not | NOT {OPERAND} | - {OPERAND} | this but NOT that this but -that |
Term | {TOKEN} | all these are tokens | |
Phrase | "{TOKEN} {TOKEN}" | '{TOKEN} {TOKEN}' | "this is a phrase" but these are tokens 'this is a phrase' but these are tokens |
Grouping | ( {OPERAND} {OPERAND} ... ) | (cats AND dogs) (cats AND dogs NOT ("black cats" OR "white dogs")) | |
BOOTS | {OPERAND}^{NUMBER} | dogs^3.5 have more boost than cats^2 | |
Wildcard | |||
Date Range | {DATE}:{DATE} | {DATE}-{DATE} | |
Range | {NUMBER}:{NUMBER} | {NUMBER}-{NUMBER} | |
Field | {FIELD_NAME}:{OPERAND} | ||
Near | {OPERAND} NEAR {OPERAND} | ||
Before | {OPERAND} BEFORE {OPERAND} | ||
Adjacent | {OPERAND} ADJ {OPERAND} | ||
Span Not | {OPERAND} SPAN_NOT {OPERAND} |