Facets for establishments

This commit is contained in:
Kuroshini 2019-11-21 22:43:10 +03:00
parent e6b353e864
commit 7376c61c47

View File

@ -113,8 +113,8 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet):
'enabled': True,
'facet': TermsFacet,
},
'works_at_noon': {
'field': 'works_at_noon',
'works_noon': {
'field': 'works_noon',
'facet': TermsFacet,
'enabled': True,
},
@ -132,6 +132,11 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet):
'field': 'tags.index_name',
'facet': TermsFacet,
'enabled': True,
},
'wine_region_id': {
'field': 'products.wine_region.id',
'facet': TermsFacet,
'enabled': True,
}
}