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