terms-query.asciidoc 524 B

12345678910111213141516171819
  1. [[query-dsl-terms-query]]
  2. === Terms Query
  3. A query that match on any (configurable) of the provided terms. This is
  4. a simpler syntax query for using a `bool` query with several `term`
  5. queries in the `should` clauses. For example:
  6. [source,js]
  7. --------------------------------------------------
  8. {
  9. "terms" : {
  10. "tags" : [ "blue", "pill" ],
  11. "minimum_should_match" : 1
  12. }
  13. }
  14. --------------------------------------------------
  15. The `terms` query is also aliased with `in` as the query name for
  16. simpler usage.