Type to search.

Term-level queries

You can use term-level queries to find documents based on precise values in structured data. Examples of structured data include date ranges, IP addresses, prices, or product IDs.

Unlike full-text queries, term-level queries do not analyze search terms. Instead, term-level queries match the exact terms stored in a field.

Note

Term-level queries still normalize search terms for keyword fields with the normalizer property. For more details, see normalizer.

bitmap_terms query The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability Planned We plan to add this functionality in a future Elastic Stack update. Subject to changes. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes. Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability Generally available This functionality is generally available and ready for production usage. Serverless interfaces and procedures might differ from classic Elastic Stack deployments.
Returns documents whose integer or long field value is contained in a roaring bitmap. Use it in place of a terms query when the set of values is very large.
exists query
Returns documents that contain any indexed value for a field.
fuzzy query
Returns documents that contain terms similar to the search term. Elasticsearch measures similarity, or fuzziness, using a Levenshtein edit distance.
ids query
Returns documents based on their document IDs.
prefix query
Returns documents that contain a specific prefix in a provided field.
range query
Returns documents that contain terms within a provided range.
regexp query
Returns documents that contain terms matching a regular expression.
term query
Returns documents that contain an exact term in a provided field.
terms query
Returns documents that contain one or more exact terms in a provided field.
terms_set query
Returns documents that contain a minimum number of exact terms in a provided field. You can define the minimum number of matching terms using a field or script.
wildcard query
Returns documents that contain terms matching a wildcard pattern.