Name | Operator | Variation | Examples | |
---|---|---|---|---|
Term | {TOKEN} | all these are tokens | ||
Phrase | "{TOKEN} {TOKEN}" | '{TOKEN} {TOKEN}' | "This is a phrase" but all these are tokens | 'This is a phrase' but all these are tokens |
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 |
Grouping | ( {OPERAND} {OPERAND} ... ) | (cats AND dogs) | (cats AND dogs NOT ("black cats" OR "white dogs")) | |
BOOST | {OPERAND}^{NUMBER} | dogs^3.5 have more boost than cats^2 | Works with phrases as well "this phase"^3.5 | |
Wildcard | * or ? | Just * | For zero o more characters All *.py files I want my ki*y | for any character I want my p?t the year was 19?? |
Date Range | {DATE}:{DATE} | {DATE}-{DATE} | With colon (:) We encourage the use of colon (:) for date ranges, is easier to read for us 1970/08/03:2022/09/29 1970-08-03:2022-09-29 1970.08.03:2022.09.29 70/AUG/03:22/SEP/29 70-AUG-03:22-SEP-29 1970.08.03:2022.09.29 70.AUG.03:22.SEP.29 08/03/1970:09/29/2022 08-03-1970:09-29-2022 08.03.1970:09.29.2022 AUG/03/70:SEP/29/22 AUG-03-70:SEP-29-22 AUG.03.70:SEP.29.22 03/08/1970:29/09/2022 03-08-1970:29-09-2022 03.08.1970:29.09.2022 03/AUG/70:29/SEP/22 03-AUG-70:29-SEP-22 03.AUG.70:29.SEP.22 | With dash (-) We recommend not to use - for date ranges. The parser does understand these, but we hardly can 1970/08/03-2022/09/29 1970-08-03-2022-09-29 1970.08.03-2022.09.29 70/AUG/03-22/SEP/29 70-AUG-03-22-SEP-29 1970.08.03-2022.09.29 70.AUG.03-22.SEP.29 08/03/1970-09/29/2022 08-03-1970-09-29-2022 08.03.1970-09.29.2022 AUG/03/70-SEP/29/22 AUG-03-70:SEP-29-22 AUG.03.70-SEP.29.22 03/08/1970-29/09/2022 03-08-1970-29-09-2022 03.08.1970-29.09.2022 03/AUG/70-29/SEP/22 03-AUG-70-29-SEP-22 03.AUG.70-29.SEP.22 |
Range | {NUMBER}:{NUMBER} | {NUMBER}-{NUMBER} | With colon (:) We encourage the use of colon (:) for ranges, is easier to read for us 10:20 -10:20 -10:-20 -10.5:-20.32 | With dash (-) We recommend not to use - for ranges. The parser does understand these, but we hardly can 10-20 -10-20 -10--20 -10.5--20.32 |
Field | {FIELD_NAME}:{OPERAND} | title:Cheese title:Cheese^2 | title:"Cheese & Beacon" title:"Cheese & Beacon"^2 | |
Near | {OPERAND} NEAR {OPERAND} | "this phrase" NEAR (this tokens) | ||
Before | {OPERAND} BEFORE {OPERAND} | "this phrase" BEFORE (this tokens) | ||
Adjacent | {OPERAND} ADJ {OPERAND} | "this phrase" ADJ (this tokens) | ||
Span Not | {OPERAND} SPAN_NOT {OPERAND} | "this phrase" SPAN_NOT (this tokens) |