Details
-
Bug
-
Resolution: Fixed
-
None
-
None
-
*Location*: http://developer.couchbase.com/documentation/server/4.5/fts/fts-queries.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
*Referrer*: http://developer.couchbase.com/documentation/server/4.5/fts/fts-text-analysis.html
*Screen Resolution*: 1440 x 900
*Location*: http://developer.couchbase.com/documentation/server/4.5/fts/fts-queries.html *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 *Referrer*: http://developer.couchbase.com/documentation/server/4.5/fts/fts-text-analysis.html *Screen Resolution*: 1440 x 900
Description
Add an explanation of the facets portion of a response.
total is the count of all results returned, regardless of which facet they are part of
count is the count of documents in a specific facet
other is the count of results that don't fall into any defined facet
missing is the count of documents that do not have a value for that field at all
The total minus all the individual facet counts will equal "missing" (and may be 0).
The other possible structures vary depending on whether its a term facet or a range facet (so terms have a structure called "term" with the name or for a range query, some definition of the range and how to name it.
facets": {
|
"abv": { |
"field": "abv", |
"total": 70, |
"missing": 21, |
"other": 0, |
"numeric_ranges": [ |
{
|
"name": "high", |
"max": 7, |
"count": 57 |
},
|
{
|
"name": "low", |
"min": 7, |
"count": 13 |
}
|
]
|
}
|
}
|