Fix facet
This commit is contained in:
parent
0fe3e3f8ba
commit
7e6b2712a9
|
|
@ -46,7 +46,7 @@ class EstablishmentDocument(Document):
|
|||
'id': fields.IntegerField(attr='id'),
|
||||
'label': fields.ObjectField(attr='label_indexing',
|
||||
properties=OBJECT_FIELD_PROPERTIES),
|
||||
'index_name': fields.KeywordField(attr='value'),
|
||||
'value': fields.KeywordField(),
|
||||
},
|
||||
multi=True)
|
||||
visible_tags = fields.ObjectField(
|
||||
|
|
@ -54,6 +54,7 @@ class EstablishmentDocument(Document):
|
|||
'id': fields.IntegerField(attr='id'),
|
||||
'label': fields.ObjectField(attr='label_indexing',
|
||||
properties=OBJECT_FIELD_PROPERTIES),
|
||||
'value': fields.KeywordField(),
|
||||
},
|
||||
multi=True)
|
||||
products = fields.ObjectField(
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ class EstablishmentDocumentViewSet(BaseDocumentViewSet):
|
|||
'enabled': True,
|
||||
},
|
||||
'tag': {
|
||||
'field': 'tags.index_name',
|
||||
'field': 'tags.value',
|
||||
'facet': TermsFacet,
|
||||
'enabled': True,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user