=== operator. To understand exactly how it works, let’s consider the following two term queries:
RUNNING.
All tokenizers besides the literal tokenizer
lowercase tokens by default. Make
sure to account for this when searching for a term.
If you are using
=== to do an exact string match on the original text, make
sure that the text uses the
literal tokenizer.How It Works
Under the hood,=== simply finds all documents where any of their tokens are an exact string match against the query token.
A document’s tokens are determined by the field’s tokenizer and token filters, configured at index creation time.
Examples
Let’s consider a few more hypothetical documents to see whether they would be returned by the term query. These examples assume that index uses the default tokenizer and token filters, and that the term query isrunning.
Term Set
Passing a text array to the right-hand side of=== means “find all documents containing any one of these tokens.”