Facet with tags id instead of text values

(cherry picked from commit 2ebe6e6)
This commit is contained in:
Kuroshini 2019-11-22 13:54:07 +03:00
parent f7703f18b0
commit 17931eba53

View File

@ -31,7 +31,7 @@ class NewsDocumentViewSet(BaseDocumentViewSet):
faceted_search_fields = { faceted_search_fields = {
'tag': { 'tag': {
'field': 'tags.value', 'field': 'tags.id',
'enabled': True, 'enabled': True,
'facet': TermsFacet, 'facet': TermsFacet,
}, },
@ -122,7 +122,7 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet):
'enabled': True, 'enabled': True,
}, },
'tag': { 'tag': {
'field': 'tags.value', 'field': 'tags.id',
'facet': TermsFacet, 'facet': TermsFacet,
'enabled': True, 'enabled': True,
}, },