diff --git a/wagtail/wagtailsearch/tests/test_backends.py b/wagtail/wagtailsearch/tests/test_backends.py index cecd4ef165..e6c5d2bf6c 100644 --- a/wagtail/wagtailsearch/tests/test_backends.py +++ b/wagtail/wagtailsearch/tests/test_backends.py @@ -1,3 +1,5 @@ +# coding: utf-8 + from __future__ import absolute_import, unicode_literals import time diff --git a/wagtail/wagtailsearch/tests/test_elasticsearch2_backend.py b/wagtail/wagtailsearch/tests/test_elasticsearch2_backend.py index bdcd4270bd..9ca27230b0 100644 --- a/wagtail/wagtailsearch/tests/test_elasticsearch2_backend.py +++ b/wagtail/wagtailsearch/tests/test_elasticsearch2_backend.py @@ -761,7 +761,7 @@ class TestElasticsearch2Mapping(TestCase): 'published_date_filter': {'index': 'not_analyzed', 'type': 'date', 'include_in_all': False}, 'title': {'type': 'string', 'include_in_all': True, 'analyzer': 'edgengram_analyzer', 'search_analyzer': 'standard'}, 'title_filter': {'index': 'not_analyzed', 'type': 'string', 'include_in_all': False}, - 'content': {'type': 'string', 'include_in_all': True}, + 'content': {'type': 'string', 'boost': 2, 'include_in_all': True}, 'callable_indexed_field': {'type': 'string', 'include_in_all': True}, 'subobjects': { 'properties': { @@ -865,7 +865,7 @@ class TestElasticsearch2MappingInheritance(TestCase): 'published_date_filter': {'index': 'not_analyzed', 'type': 'date', 'include_in_all': False}, 'title': {'type': 'string', 'include_in_all': True, 'analyzer': 'edgengram_analyzer', 'search_analyzer': 'standard'}, 'title_filter': {'index': 'not_analyzed', 'type': 'string', 'include_in_all': False}, - 'content': {'type': 'string', 'include_in_all': True}, + 'content': {'type': 'string', 'boost': 2, 'include_in_all': True}, 'callable_indexed_field': {'type': 'string', 'include_in_all': True}, 'subobjects': { 'properties': { diff --git a/wagtail/wagtailsearch/tests/test_elasticsearch5_backend.py b/wagtail/wagtailsearch/tests/test_elasticsearch5_backend.py index 0e049b29db..a83cd202ca 100644 --- a/wagtail/wagtailsearch/tests/test_elasticsearch5_backend.py +++ b/wagtail/wagtailsearch/tests/test_elasticsearch5_backend.py @@ -760,7 +760,7 @@ class TestElasticsearch5Mapping(TestCase): 'published_date_filter': {'type': 'date', 'include_in_all': False}, 'title': {'type': 'text', 'include_in_all': True, 'analyzer': 'edgengram_analyzer', 'search_analyzer': 'standard'}, 'title_filter': {'type': 'keyword', 'include_in_all': False}, - 'content': {'type': 'text', 'include_in_all': True}, + 'content': {'type': 'text', 'boost': 2, 'include_in_all': True}, 'callable_indexed_field': {'type': 'text', 'include_in_all': True}, 'subobjects': { 'properties': { @@ -864,7 +864,7 @@ class TestElasticsearch5MappingInheritance(TestCase): 'published_date_filter': {'type': 'date', 'include_in_all': False}, 'title': {'type': 'text', 'include_in_all': True, 'analyzer': 'edgengram_analyzer', 'search_analyzer': 'standard'}, 'title_filter': {'type': 'keyword', 'include_in_all': False}, - 'content': {'type': 'text', 'include_in_all': True}, + 'content': {'type': 'text', 'boost': 2, 'include_in_all': True}, 'callable_indexed_field': {'type': 'text', 'include_in_all': True}, 'subobjects': { 'properties': { diff --git a/wagtail/wagtailsearch/tests/test_elasticsearch_backend.py b/wagtail/wagtailsearch/tests/test_elasticsearch_backend.py index ed944cd6b3..1250b6188b 100644 --- a/wagtail/wagtailsearch/tests/test_elasticsearch_backend.py +++ b/wagtail/wagtailsearch/tests/test_elasticsearch_backend.py @@ -774,7 +774,7 @@ class TestElasticsearchMapping(TestCase): 'published_date_filter': {'index': 'not_analyzed', 'type': 'date', 'include_in_all': False}, 'title': {'type': 'string', 'include_in_all': True, 'index_analyzer': 'edgengram_analyzer'}, 'title_filter': {'index': 'not_analyzed', 'type': 'string', 'include_in_all': False}, - 'content': {'type': 'string', 'include_in_all': True}, + 'content': {'type': 'string', 'boost': 2, 'include_in_all': True}, 'callable_indexed_field': {'type': 'string', 'include_in_all': True}, 'tags': { 'type': 'nested', @@ -881,7 +881,7 @@ class TestElasticsearchMappingInheritance(TestCase): 'published_date_filter': {'index': 'not_analyzed', 'type': 'date', 'include_in_all': False}, 'title': {'type': 'string', 'include_in_all': True, 'index_analyzer': 'edgengram_analyzer'}, 'title_filter': {'index': 'not_analyzed', 'type': 'string', 'include_in_all': False}, - 'content': {'type': 'string', 'include_in_all': True}, + 'content': {'type': 'string', 'boost': 2, 'include_in_all': True}, 'callable_indexed_field': {'type': 'string', 'include_in_all': True}, 'tags': { 'type': 'nested',