ElasticSearch terms Query
Jump to navigation
Jump to search
An ElasticSearch terms Query is an ElasticSearch query that is a terms query.
- …
- Example(s):
{"terms":{"tags":["blue","pill"],"minimum_should_match":1}}
{"query":{"bool":{"must":[{"terms":{"product.displayName":["sl3k4nr0","01"],"minimum_should_match":2}}],"must_not":[],"should":[]}},"from":0,"size":500,"sort":[],"facets":{}}
- Counter-Example(s):
- See: Lucene Query, SOLR Query.
References
2012
- http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html
- A query that match on any (configurable) of the provided terms. This is a simpler syntax query for using a bool query with several term queries in the should clauses.