diff --git a/src/core/management/commands/update_index_async.py b/src/core/management/commands/update_index_async.py index bd0755999..c11fda0d1 100644 --- a/src/core/management/commands/update_index_async.py +++ b/src/core/management/commands/update_index_async.py @@ -1,3 +1,4 @@ +from django.core.cache import cache from django.core.management.base import BaseCommand @@ -7,8 +8,41 @@ class Command(BaseCommand): " command" ) + def add_arguments(self, parser): + parser.add_argument( + "--force", + help="Force the update of the search index", + dest="force", + default=False, + ) + def handle(self, *args, **options): from core.tasks import update_search_index + from extended_search.management.commands.create_index_mapping_json import ( + get_indexed_mapping_dict, + ) + + force = options["force"] + perform_update = force + + if not force: + # Get the current search mapping hash + sm_hash = cache.get("search_mapping_hash") + + # Get the search mapping dict + sm_dict = get_indexed_mapping_dict() + # Get the hash of the current search mapping dict + new_sm_hash = hash(frozenset(sm_dict.items())) + + # If the hash of the current search mapping dict is different from the + # hash of the search mapping dict that was stored in the cache, then + # update the search index. + if sm_hash != new_sm_hash: + cache.set("search_mapping_hash", new_sm_hash) + perform_update = True + + if not perform_update: + return update_search_index.delay() diff --git a/src/core/tasks.py b/src/core/tasks.py index 823c4768f..91a1a36bf 100644 --- a/src/core/tasks.py +++ b/src/core/tasks.py @@ -28,10 +28,6 @@ def ingest_uk_staff_locations(self): @celery_app.task(bind=True) def update_search_index(self): - # Run update_index --schema-only - call_command("update_index", schema_only=True) - - # Run update_index call_command("update_index") diff --git a/src/extended_search/management/commands/create_index_mapping_json.py b/src/extended_search/management/commands/create_index_mapping_json.py new file mode 100644 index 000000000..ca3d680b2 --- /dev/null +++ b/src/extended_search/management/commands/create_index_mapping_json.py @@ -0,0 +1,50 @@ +from pathlib import Path + +from django.core.management.base import BaseCommand +from wagtail.search.backends import get_search_backend + +from extended_search.index import get_indexed_models + + +# Path: src/extended_search/management/commands/create_index_fields_json.py +JSON_FILE = Path(__file__).parent / "indexed_mapping.json" + + +def get_sorted_mapping(search_backend, model): + mapping = search_backend.mapping_class(model).get_mapping() + + def sort_dict(d): + sorted_dict = dict(sorted(d.items())) + for k, v in d.items(): + if isinstance(v, dict): + sorted_dict[k] = sort_dict(v) + else: + sorted_dict[k] = v + return sorted_dict + + return sort_dict(mapping) + + +def get_indexed_mapping_dict(): + """ + Return a dictionary of indexed models and their fields + Ignoring some models that we don't care about. + """ + search_backend = get_search_backend() + + return { + str(model): get_sorted_mapping(search_backend, model) + for model in get_indexed_models() + # if model not in [Media, Document, Image] + if model._meta.app_label != "testapp" + } + + +class Command(BaseCommand): + help = "Create test JSON containing the mapping for all indexed models" + + def handle(self, *args, **options): + import json + + with open(JSON_FILE, "w") as f: + json.dump(get_indexed_mapping_dict(), f, indent=4) diff --git a/src/extended_search/management/commands/indexed_mapping.json b/src/extended_search/management/commands/indexed_mapping.json new file mode 100644 index 000000000..49bccf4df --- /dev/null +++ b/src/extended_search/management/commands/indexed_mapping.json @@ -0,0 +1,4481 @@ +{ + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "pk": { + "store": true, + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_navigationpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_navigationpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_navigationpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_navigationpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_navigationpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_navigationpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_blogpost__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_blogpost__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_blogpost__is_creatable_filter": { + "type": "keyword" + }, + "content_blogpost__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_blogpost__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_blogpost__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_blogpost__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_blogpost__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_blogpost__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "news_newspage__last_published_at_scorefunction_filter": { + "type": "date" + }, + "news_newspage__pinned_on_home_filter": { + "type": "boolean" + }, + "news_newspage__search_categories": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "news_newspage__search_categories_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_pagewithtopics__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_pagewithtopics__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_workingatdithome__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "working_at_dit_workingatdithome__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "working_at_dit_workingatdithome__is_creatable_filter": { + "type": "keyword" + }, + "working_at_dit_workingatdithome__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_workingatdithome__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_workingatdithome__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "working_at_dit_workingatdithome__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "working_at_dit_workingatdithome__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "working_at_dit_workingatdithome__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_topic__content_contact_email_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_topic__content_owner": { + "properties": { + "working_at_dit_topic__first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_topic__last_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_topic__preferred_first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + }, + "type": "nested" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_pagewithtopics__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_pagewithtopics__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_howdoi__content_contact_email_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_howdoi__content_owner": { + "properties": { + "working_at_dit_howdoi__first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_howdoi__last_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_howdoi__preferred_first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + }, + "type": "nested" + }, + "working_at_dit_pagewithtopics__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_pagewithtopics__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_howdoihome__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "working_at_dit_howdoihome__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "working_at_dit_howdoihome__is_creatable_filter": { + "type": "keyword" + }, + "working_at_dit_howdoihome__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_howdoihome__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_howdoihome__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "working_at_dit_howdoihome__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "working_at_dit_howdoihome__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "working_at_dit_howdoihome__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_guidance__content_contact_email_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_guidance__content_owner": { + "properties": { + "working_at_dit_guidance__first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_guidance__last_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_guidance__preferred_first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + }, + "type": "nested" + }, + "working_at_dit_pagewithtopics__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_pagewithtopics__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_pagewithtopics__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_pagewithtopics__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_policy__content_contact_email_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_policy__content_owner": { + "properties": { + "working_at_dit_policy__first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_policy__last_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_policy__preferred_first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + }, + "type": "nested" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_10_0": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "tools_tool__search_tool_name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "tools_tool__search_tool_name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "tools_tool__search_tool_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "tools_tool__search_tool_name_keyword": { + "analyzer": "no_spaces", + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "translation_key_filter": { + "type": "keyword" + }, + "working_at_dit_pagewithtopics__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "working_at_dit_pagewithtopics__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "tools_toolshome__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "tools_toolshome__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "tools_toolshome__is_creatable_filter": { + "type": "keyword" + }, + "tools_toolshome__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "tools_toolshome__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "tools_toolshome__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "tools_toolshome__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "tools_toolshome__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "tools_toolshome__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "about_us_aboutus__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "about_us_aboutus__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "about_us_aboutushome__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "about_us_aboutushome__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "networks_networkshome__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "networks_networkshome__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "networks_networkshome__is_creatable_filter": { + "type": "keyword" + }, + "networks_networkshome__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "networks_networkshome__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "networks_networkshome__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "networks_networkshome__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "networks_networkshome__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "networks_networkshome__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_contentpage__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "content_contentpage__is_creatable_filter": { + "type": "keyword" + }, + "content_contentpage__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "content_contentpage__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "content_contentpage__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_contentpage__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "networks_network__content_contact_email_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "networks_network__content_owner": { + "properties": { + "networks_network__first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "networks_network__last_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "networks_network__preferred_first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + } + }, + "type": "nested" + }, + "networks_network__topic_titles": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "networks_network__topic_titles_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_5_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "country_fact_sheet_countryfactsheethome__excerpt": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "country_fact_sheet_countryfactsheethome__excerpt_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "country_fact_sheet_countryfactsheethome__is_creatable_filter": { + "type": "keyword" + }, + "country_fact_sheet_countryfactsheethome__search_content": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "country_fact_sheet_countryfactsheethome__search_content_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "country_fact_sheet_countryfactsheethome__search_headings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "country_fact_sheet_countryfactsheethome__search_headings_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "country_fact_sheet_countryfactsheethome__search_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "country_fact_sheet_countryfactsheethome__search_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_5_0" + ], + "type": "text" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_0_8": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_1_5": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_3_0": { + "type": "text" + }, + "_all_text_boost_4_0": { + "type": "text" + }, + "_all_text_boost_7_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "additional_roles": { + "properties": { + "peoplefinder_person__name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_0_8" + ], + "type": "text" + }, + "peoplefinder_person__name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_0_8" + ], + "type": "text" + } + }, + "type": "nested" + }, + "became_inactive_filter": { + "type": "date" + }, + "contact_email": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "contact_email_keyword": { + "analyzer": "no_spaces", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "do_not_work_for_dit_filter": { + "type": "boolean" + }, + "email": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "email_keyword": { + "analyzer": "no_spaces", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "first_name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "first_name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "fluent_languages": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "full_name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "full_name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "full_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "grade_id_filter": { + "type": "integer" + }, + "international_building": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "is_active_filter": { + "type": "boolean" + }, + "key_skills": { + "properties": { + "peoplefinder_person__name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_0_8" + ], + "type": "text" + }, + "peoplefinder_person__name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_0_8" + ], + "type": "text" + } + }, + "type": "nested" + }, + "last_name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "last_name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "last_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "learning_interests": { + "properties": { + "peoplefinder_person__name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_0_8" + ], + "type": "text" + } + }, + "type": "nested" + }, + "networks": { + "properties": { + "peoplefinder_person__name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_5" + ], + "type": "text" + }, + "peoplefinder_person__name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_5" + ], + "type": "text" + }, + "peoplefinder_person__name_filter": { + "type": "keyword" + } + }, + "type": "nested" + }, + "networks_filter": { + "type": "integer" + }, + "other_key_skills": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_0_8" + ], + "type": "text" + }, + "other_key_skills_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_0_8" + ], + "type": "text" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "preferred_first_name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "preferred_first_name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "preferred_first_name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_7_0" + ], + "type": "text" + }, + "primary_phone_number": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "primary_phone_number_keyword": { + "analyzer": "no_spaces", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "professions_filter": { + "type": "integer" + }, + "profile_completion_scorefunction_filter": { + "type": "integer" + }, + "roles": { + "properties": { + "peoplefinder_person__job_title": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + }, + "peoplefinder_person__job_title_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_3_0" + ], + "type": "text" + } + }, + "type": "nested" + }, + "search_buildings": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "search_grade_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "search_location": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "search_teams": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "search_teams_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "secondary_phone_number": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "secondary_phone_number_keyword": { + "analyzer": "no_spaces", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_1_0": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_all_text_boost_4_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "abbreviation": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "abbreviation_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "abbreviation_keyword": { + "analyzer": "no_spaces", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "description": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "description_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_1_0" + ], + "type": "text" + }, + "name": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "name_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_4_0" + ], + "type": "text" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "roles_in_team": { + "analyzer": "snowball", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "roles_in_team_explicit": { + "analyzer": "simple", + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_10_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "collection_id_filter": { + "type": "integer" + }, + "content_type": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "tags": { + "properties": { + "name": { + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + } + }, + "type": "nested" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "uploaded_by_user_id_filter": { + "type": "integer" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_10_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "collection_id_filter": { + "type": "integer" + }, + "content_type": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "tags": { + "properties": { + "name": { + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + } + }, + "type": "nested" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "uploaded_by_user_id_filter": { + "type": "integer" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_2_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "content_type": { + "type": "keyword" + }, + "content_type_id_filter": { + "type": "integer" + }, + "depth_filter": { + "type": "integer" + }, + "first_published_at_filter": { + "type": "date" + }, + "id_filter": { + "type": "integer" + }, + "last_published_at_filter": { + "type": "date" + }, + "latest_revision_created_at_filter": { + "type": "date" + }, + "live_filter": { + "type": "boolean" + }, + "locale_id_filter": { + "type": "integer" + }, + "locked_filter": { + "type": "boolean" + }, + "owner_id_filter": { + "type": "integer" + }, + "path_filter": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "show_in_menus_filter": { + "type": "boolean" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_2_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "translation_key_filter": { + "type": "keyword" + } + } + }, + "": { + "properties": { + "_all_text": { + "type": "text" + }, + "_all_text_boost_10_0": { + "type": "text" + }, + "_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "collection_id_filter": { + "type": "integer" + }, + "content_type": { + "type": "keyword" + }, + "pk": { + "store": true, + "type": "keyword" + }, + "tags": { + "properties": { + "name": { + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "name_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + } + }, + "type": "nested" + }, + "title": { + "copy_to": [ + "_all_text", + "_all_text_boost_10_0" + ], + "type": "text" + }, + "title_edgengrams": { + "analyzer": "edgengram_analyzer", + "search_analyzer": "standard", + "type": "text" + }, + "title_filter": { + "type": "keyword" + }, + "uploaded_by_user_id_filter": { + "type": "integer" + } + } + } +} \ No newline at end of file diff --git a/src/extended_search/tests/test_indexed.py b/src/extended_search/tests/test_indexed.py index 3363bf45a..114ac8767 100644 --- a/src/extended_search/tests/test_indexed.py +++ b/src/extended_search/tests/test_indexed.py @@ -10,10 +10,6 @@ from core.models.tags import Tag from country_fact_sheet.models import CountryFactSheetHome from extended_search.index import DWIndexedField, class_is_indexed, get_indexed_models -from extended_search.management.commands.create_index_fields_json import ( - JSON_FILE, - get_indexed_models_and_fields_dict, -) from home.models import HomePage from networks.models import Network, NetworksHome from news.models import NewsHome, NewsPage @@ -276,6 +272,11 @@ def test_indexed_models(self): }, "Indexed models have changed, please update this test if this was intentional." def test_indexed_models_and_fields(test): + from extended_search.management.commands.create_index_fields_json import ( + JSON_FILE, + get_indexed_models_and_fields_dict, + ) + with open(JSON_FILE, "r") as f: expected_indexed_models_and_fields = json.load(f) assert ( @@ -286,3 +287,17 @@ def test_indexed_models_and_fields(test): " If this was intentional, please update the JSON file by running the" " `create_index_fields_json` management command." ) + + def test_indexed_mappings(test): + from extended_search.management.commands.create_index_mapping_json import ( + JSON_FILE, + get_indexed_mapping_dict, + ) + + with open(JSON_FILE, "r") as f: + expected_indexed_mapping = json.load(f) + assert get_indexed_mapping_dict() == expected_indexed_mapping, ( + "Indexed mappings have changed." + " If this was intentional, please update the JSON file by running the" + " `create_index_mapping_json` management command." + )