Update notes authored by ekes's avatar ekes
......@@ -195,7 +195,62 @@ Result
Facets provide an easy way to filter results by entity properties.
For each entity there's a predefined set of facets. **TODO The list of available facets***
For each entity there's a predefined set of facets.
```
Events:
// operator: and
FacetPostalCode = "field_offline:field_address:postal_code"
// Always starts with an uppercase letter, e.g. Berlin
// operator: and
FacetCity = "city"
// Uppercase country code, e.g. DE for Germany
// operator: and
FacetCountry = "country"
// The date must be in the format YY YY-MM or YYYY-MM-DD
// operator: or
FacetDate = "date"
// price category, e.g. "free-121"
FacetPrice = "price"
// Topic tag, e.g. "sport", "vegan"
// operator: and
FacetTag = "tag"
// operator: or
FacetGroup = "group"
// Spaces and slashes should be replaced by a dash, e.g. "work space/diy" =>
// "work-space-diy"
// operator: and
FacetCategory = "category"
Groups:
//operator: none
FacetOfflineMap = "offline:map"
// For some reason values need to start with a lowercase here, e.g. berlin
// operator: and
FacetCity = "city"
// Uppercase country code, e.g. DE for Germany
// operator: and
FacetCountry = "country"
// operator: and
FacetSquated = "squated"
// Group is listed by this group.
// operator: and
FacetRadarGroupListedBy = "radar_group_listed_by"
// If the group is active
// operator: or
FacetActive = "field_active"
// topic / tag
// operator: and
FacetTopic = "topic"
// Spaces and slashes should be replaced by a dash, e.g. "work space/diy" =>
// "work-space-diy"
// operator: and
FacetCategory = "category"
// operator: and
FacetTitle = "title"
```
Facets can be passed to the server by using the facets parameter:
......
......