fix field analyzer

This commit is contained in:
Kuroshini 2019-12-10 15:41:33 +03:00
parent 3b85e927a1
commit 34173afb05

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)
backoffice_title = fields.KeywordField(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)
description = fields.ObjectField(attr='description_indexing', description = fields.ObjectField(attr='description_indexing',