Facet with tags id instead of text values
This commit is contained in:
parent
00d7bbe7ec
commit
2ebe6e60a3
|
|
@ -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