WARNING: Version 6.1 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
While the full text queries will analyze the query
string before executing, the term-level queries operate on the exact terms
that are stored in the inverted index, and will normalize terms before executing
keyword fields with
These queries are usually used for structured data like numbers, dates, and enums, rather than full text fields. Alternatively, they allow you to craft low-level queries, foregoing the analysis process.
The queries in this group are:
- Find documents which contain the exact term specified in the field specified.
- Find documents which contain any of the exact terms specified in the field specified.
- Find documents which match with one or more of the specified terms. The number of terms that must match depend on the specified minimum should match field or script.
- Find documents where the field specified contains values (dates, numbers, or strings) in the range specified.
- Find documents where the field specified contains any non-null value.
- Find documents where the field specified contains terms which begin with the exact prefix specified.
- Find documents where the field specified contains terms which match the
pattern specified, where the pattern supports single character wildcards
?) and multi-character wildcards (
- Find documents where the field specified contains terms which match the regular expression specified.
- Find documents where the field specified contains terms which are fuzzily similar to the specified term. Fuzziness is measured as a Levenshtein edit distance of 1 or 2.
- Find documents of the specified type.
- Find documents with the specified type and IDs.