How do keyword searches work (exact phrases, AND / OR, excluding words)?
- Phrases:
"keyword": "Donald Trump"returns articles that contain the exact phrase. - Where to search:
keywordLoccan bebody,titleorbody,title(the keyword can be in the body or the title). - Several keywords: by default all of them must be mentioned (AND). Set
"keywordOper": "or"to match any of them. - Excluding words: use
ignoreKeyword, or a$notblock in the advanced query language. In the sandbox, type a minus before a keyword (e.g.-stablecoin) to exclude it; the same works for concepts and categories. - Boolean expressions in one keyword field, with
"keywordSearchMode": "exact":
{ "keyword": "(condition1 or condition2 or condition3) and condition5",
"keywordSearchMode": "exact" }More examples: Different ways of searching using keywords.
What is not supported: wildcards (e.g. tradition*), semantic / similarity search, and natural-language questions as queries - the query has to contain the actual search conditions.