---
title: "Facet"
slug: "facet"
abstract: ""
---
# Facet

The Facet Resource is a `json` resource containing zero or more [facet values](https://doc.sitecore.com/ch/en/developers/cloud-dev/facet-value.html "Facet value") describing the filters that can be applied to the search query. It also contains additional properties and links:

| Name | Type | Description |
| --- | --- | --- |
| properties | Object | A dictionary object containing the properties and values. Properties include a title, an identifier for the property/field we do faceting on, and a number of matched results. |
| values | Array | An array of [facet values](https://doc.sitecore.com/ch/en/developers/cloud-dev/facet-value.html). The number of resources included is capped to a fixed value. |
| list_all | Link | A hyperlink to the resource that represents the collection of all facet objects for this identifier and the current search. |

Example:

```json
{
    "properties": {
        "matches": 96,
        "title": "Brand",
        "identifier": "myFieldId"
    },
    "values": [
        The array of facet values
    ],
    "list_all": {
        "href":"http://<hostname>/api/list_facets?q=myQuery&id=myFieldId"
    }
}

```