query-facet.asciidoc 486 B

123456789101112131415161718192021
  1. [[search-facets-query-facet]]
  2. === Query Facets
  3. include::deprecated.asciidoc[]
  4. A facet query allows to return a count of the hits matching the facet
  5. query. The query itself can be expressed using the Query DSL. For
  6. example:
  7. [source,js]
  8. --------------------------------------------------
  9. {
  10. "facets" : {
  11. "wow_facet" : {
  12. "query" : {
  13. "term" : { "tag" : "wow" }
  14. }
  15. }
  16. }
  17. }
  18. --------------------------------------------------