[DOCS] Added clarification about global scope in facets

This commit is contained in:
Clinton Gormley 2013-09-04 20:44:16 +02:00
parent 08f8e77b8f
commit e1c6f45ff0
1 changed files with 6 additions and 5 deletions

View File

@ -118,13 +118,14 @@ values computed across all documents in the index:
--------------------------------------------------
{
"facets" : {
"<FACET NAME>" : {
"<FACET TYPE>" : { ... },
"global" : true
"my_facets" : {
"terms" : { ... },
"global" : true <1>
}
}
}
--------------------------------------------------
<1> The `global` keyword can be used with any facet type.
There's one *important distinction* to keep in mind. While search
_queries_ restrict both the returned documents and facet counts, search