diff --git a/core/src/search_stores/indices/data_sources_nodes_2.mappings.json b/core/src/search_stores/indices/data_sources_nodes_2.mappings.json new file mode 100644 index 0000000000000..a7ff9c56e81d8 --- /dev/null +++ b/core/src/search_stores/indices/data_sources_nodes_2.mappings.json @@ -0,0 +1,39 @@ +{ + "dynamic": "strict", + "properties": { + "data_source_id": { + "type": "keyword" + }, + "data_source_internal_id": { + "type": "keyword" + }, + "timestamp": { + "type": "date" + }, + "node_type": { + "type": "keyword" + }, + "node_id": { + "type": "keyword" + }, + "title": { + "type": "text", + "analyzer": "standard", + "fields": { + "edge": { + "type": "text", + "analyzer": "edge_analyzer" + } + } + }, + "parents": { + "type": "keyword" + }, + "parent_id": { + "type": "keyword" + }, + "mime_type": { + "type": "keyword" + } + } +} diff --git a/core/src/search_stores/indices/data_sources_nodes_2.settings.local.json b/core/src/search_stores/indices/data_sources_nodes_2.settings.local.json new file mode 100644 index 0000000000000..29121fca2a054 --- /dev/null +++ b/core/src/search_stores/indices/data_sources_nodes_2.settings.local.json @@ -0,0 +1,36 @@ +{ + "number_of_shards": 1, + "number_of_replicas": 0, + "refresh_interval": "30s", + "analysis": { + "analyzer": { + "icu_analyzer": { + "type": "custom", + "tokenizer": "icu_tokenizer", + "filter": [ + "icu_folding", + "lowercase", + "asciifolding", + "preserve_word_delimiter" + ] + }, + "edge_analyzer": { + "type": "custom", + "tokenizer": "icu_tokenizer", + "filter": ["lowercase", "edge_ngram_filter"] + } + }, + "filter": { + "preserve_word_delimiter": { + "type": "word_delimiter", + "split_on_numerics": false, + "split_on_case_change": false + }, + "edge_ngram_filter": { + "type": "edge_ngram", + "min_gram": 2, + "max_gram": 20 + } + } + } +} diff --git a/core/src/search_stores/indices/data_sources_nodes_2.settings.us-central-1.json b/core/src/search_stores/indices/data_sources_nodes_2.settings.us-central-1.json new file mode 100644 index 0000000000000..624e7236a703c --- /dev/null +++ b/core/src/search_stores/indices/data_sources_nodes_2.settings.us-central-1.json @@ -0,0 +1,36 @@ +{ + "number_of_shards": 2, + "number_of_replicas": 1, + "refresh_interval": "30s", + "analysis": { + "analyzer": { + "icu_analyzer": { + "type": "custom", + "tokenizer": "icu_tokenizer", + "filter": [ + "icu_folding", + "lowercase", + "asciifolding", + "preserve_word_delimiter" + ] + }, + "edge_analyzer": { + "type": "custom", + "tokenizer": "icu_tokenizer", + "filter": ["lowercase", "edge_ngram_filter"] + } + }, + "filter": { + "preserve_word_delimiter": { + "type": "word_delimiter", + "split_on_numerics": false, + "split_on_case_change": false + }, + "edge_ngram_filter": { + "type": "edge_ngram", + "min_gram": 2, + "max_gram": 20 + } + } + } +}