Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-1682

Describe Facets Results JSON

    XMLWordPrintable

Details

    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
                                }
                                ]
                                }
                                }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            will.gardella Will Gardella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty