Description

Field Name Required? Rules Description

@datatype

False

must be "GBucket" if present

@version

False

must be "2017-09-01" if present

value

True

String or Object

If the bucket represents a single value (e.g. in a "terms" GFacet), the value is provided. If the bucket represents a range of values, then this is an object with "from" and "to" as in GFilter This range is assumed to be closed for the "from" value and open on the "to" value as in [from, to)

count

True

Integer

The number of results in this bucket

Examples

Example 1
{
  "@datatype": "GBucket",
  "@version": "2017-09-01",
  "value": ".docx",
  "count": 1234
}
Example 2
{
  "@version": "2017-09-01",
  "value": {
    "from": "0",
    "to": "10"
  },
  "count": 0
}
Example 2
{
  "@datatype": "GBucket",
  "@version": "2017-09-01",
  "value": {
    "from": "2011-01-01",
    "to": "2012-01-01"
  },
  "count": 17
}

© 2010- The University of Chicago Legal