OpenSearch/docs/reference/search/facets/query-facet.asciidoc

22 lines
486 B
Plaintext

[[search-facets-query-facet]]
=== Query Facets
include::deprecated.asciidoc[]
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" }
}
}
}
}
--------------------------------------------------