[[search-facets-query-facet]] === Query Facets include::deprecated.asciidoc[] NOTE: There is no equivalent aggregation but you can use the <> aggregation and wrap the query inside a <>. A facet query allows to return a count of the hits matching the facet query. The query itself can be expressed using the Query DSL. For example: [source,js] -------------------------------------------------- { "facets" : { "wow_facet" : { "query" : { "term" : { "tag" : "wow" } } } } } --------------------------------------------------