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_termsquery 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
integerorlongfield value is contained in a roaring bitmap. Use it in place of atermsquery when the set of values is very large. existsquery- Returns documents that contain any indexed value for a field.
fuzzyquery- Returns documents that contain terms similar to the search term. Elasticsearch measures similarity, or fuzziness, using a Levenshtein edit distance.
idsquery- Returns documents based on their document IDs.
prefixquery- Returns documents that contain a specific prefix in a provided field.
rangequery- Returns documents that contain terms within a provided range.
regexpquery- Returns documents that contain terms matching a regular expression.
termquery- Returns documents that contain an exact term in a provided field.
termsquery- Returns documents that contain one or more exact terms in a provided field.
terms_setquery- 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.
wildcardquery- Returns documents that contain terms matching a wildcard pattern.