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 = {
|
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,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user