Delve Indexer syntax reference
Query syntax
Reference for the boolean query language used in the indexer.
Searching for words and phrases
What you write | What it does |
|---|---|
| Matches the word “tesla”. |
| Matches the exact phrase, in order. |
| Matches any word starting with “electr” (electric, electronics, etc.). |
Use double quotes around anything with spaces, punctuation, or special characters.
The * wildcard normally only works at the end of a word. Certain fields (currently only domain) may also allow it in the middle or at the start (e.g. *thing , som*ing ).
Combining searches
Operators must be written in uppercase. Lowercase and/or/not are treated as ordinary words.
Operator | Example | Meaning |
|---|---|---|
|
| Both must appear. |
|
| Either may appear. |
|
| Excludes results matching the second term. |
|
| Groups parts of a query together. |
If you combine different operators in the same query, you must use parentheses to make the grouping clear. For example, tesla AND ford OR gm is not allowed — write (tesla AND ford) OR gm or tesla AND (ford OR gm).
Proximity search: NEAR
NEAR finds two terms that appear close to each other in the text.
What you write | What it does |
|---|---|
| The two words appear within 5 words of each other (the default). |
| Within 10 words of each other. |
| Either left-hand option appears within 8 words of the right-hand wildcard. |
The terms on either side of NEAR must be plain words, phrases, wildcards, or a simple OR list — not full sub-queries with AND or NOT.
Searching a specific field
Put a field name and a colon before a term to restrict the search to that field.
What you write | What it does |
|---|---|
| Matches “tesla” in the title only. |
| Matches articles from that publication. |
| Applies the proximity search to the article body only. |
| Matches articles with more than 100 words.
|
Available fields:
Field | What it matches |
|---|---|
| The article headline. |
| The article headline (case-sensitive) |
| The article body. |
| The article body (case-sensitive) |
| The publication name (e.g. “Reuters”). |
| The publication’s web domain (e.g. e.g., to search anything on a Yahoo domain: (domain:yahoo.com OR domain:*.yahoo.com) NOTE: You should generally use Delve’s built-in publication list filters instead, for most/all cases you’d want to reach for this field. |
| The article author. |
| The country of publication (two-letter country code). |
| The article language (two-letter language code). |
| Can be |
| The word count (e.g. |
| An internal rank of the publication value from one of our data providers; from 1 (highest value) to 5 (lowest value). We do NOT control this value, so please use with caution, and understand that we may deprecate it in the future in favor of our own ranking. |
| The article URL. |
(You may see references to other fields like source or sourcePublicationId - you can ignore those, as they’re for internal filter use and not meant to be used directly).
If no field is specified, the search runs against the title, body, and URL.
Comments
Anything after !! on a line is ignored, up to the end of the line. Useful
for annotating long multi-line queries.
!! exclude wire copy NOT site:examplewire AND ( !! ticker and synonyms TSLA OR Tesla* OR title:"elon musk" )
Worked example
NOT site:examplewire AND ( TSLA OR Tesla* OR title:"elon musk" OR content:(layoffs NEAR/3 (factory OR plant)) ) AND NOT ( "press release" OR (sponsored NEAR content) )
This query:
Excludes anything from the publication
examplewire.Requires one of: the ticker
TSLA, any word starting withTesla, the
headline phrase"elon musk", orlayoffsappearing within 3 words offactoryorplantin the article body.Also excludes anything containing the phrase
"press release"or the wordsponsorednear the wordcontent.