From 34173afb05fe8092b25b63c5858ca9d94d03f3e7 Mon Sep 17 00:00:00 2001 From: Kuroshini Date: Tue, 10 Dec 2019 15:41:33 +0300 Subject: [PATCH] fix field analyzer --- apps/search_indexes/documents/news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/search_indexes/documents/news.py b/apps/search_indexes/documents/news.py index 535c92f6..2aab01c8 100644 --- a/apps/search_indexes/documents/news.py +++ b/apps/search_indexes/documents/news.py @@ -17,7 +17,7 @@ class NewsDocument(Document): 'name': fields.KeywordField()}) title = fields.ObjectField(attr='title_indexing', properties=OBJECT_FIELD_PROPERTIES) - backoffice_title = fields.KeywordField(analyzer='english') + backoffice_title = fields.TextField(analyzer='english') subtitle = fields.ObjectField(attr='subtitle_indexing', properties=OBJECT_FIELD_PROPERTIES) description = fields.ObjectField(attr='description_indexing',