Facet with tags id instead of text values
(cherry picked from commit 2ebe6e6)
This commit is contained in:
parent
f7703f18b0
commit
17931eba53
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user