Facet with tags id instead of text values

This commit is contained in:
Kuroshini 2019-11-22 13:54:07 +03:00
parent 00d7bbe7ec
commit 2ebe6e60a3

View File

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