many slugs es news fix

This commit is contained in:
Kuroshini 2019-12-10 19:33:15 +03:00
parent c90f8302ee
commit 77af35f543

View File

@ -17,7 +17,7 @@ class NewsDocument(Document):
'name': fields.KeywordField()}) 'name': fields.KeywordField()})
title = fields.ObjectField(attr='title_indexing', title = fields.ObjectField(attr='title_indexing',
properties=OBJECT_FIELD_PROPERTIES) properties=OBJECT_FIELD_PROPERTIES)
slugs = fields.ObjectField() slugs = fields.ListField(fields.ObjectField())
backoffice_title = fields.TextField(analyzer='english') backoffice_title = fields.TextField(analyzer='english')
subtitle = fields.ObjectField(attr='subtitle_indexing', subtitle = fields.ObjectField(attr='subtitle_indexing',
properties=OBJECT_FIELD_PROPERTIES) properties=OBJECT_FIELD_PROPERTIES)