A facet result.
| JSON representation |
|---|
{
"key": string,
"values": [
{
object ( |
| Fields | |
|---|---|
key |
The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1". |
values[] |
The facet values for this field. |
dynamicFacet |
Whether the facet is dynamically generated. |
FacetValue
A facet value which contains value names and their count.
| JSON representation |
|---|
{ "count": string, "minValue": number, "maxValue": number, // Union field |
| Fields | |
|---|---|
count |
Number of items that have this facet value. |
minValue |
The minimum value in the |
maxValue |
The maximum value in the |
Union field facet_value. A facet value which contains values. facet_value can be only one of the following: |
|
value |
Text value of a facet, such as "Black" for facet "colorFamilies". |
interval |
Interval value for a facet, such as [10, 20) for facet "price". |