aboutsummaryrefslogtreecommitdiffstats
path: root/charts/aai-sparky-be/resources/config/schemas
diff options
context:
space:
mode:
authorKeren Joseph <keren.joseph@amdocs.com>2018-04-22 15:22:46 +0300
committerKeren Joseph <keren.joseph@amdocs.com>2018-04-30 18:16:04 +0300
commit29f11ab7809f22cbcb6a2b245cd47e15f793a439 (patch)
tree0ab6b18ce1122e93e6066bf34c16c6a9b5b0686a /charts/aai-sparky-be/resources/config/schemas
parentb2767c2bf1869f20d2d70d2891d82be8f44e5e58 (diff)
Updated AAI to latest images - sparky
- sparky configuration files are separated from image, and are in the aai/test-config project. AAI and OOM teams agreed that minimal configuration will be added to the image eventually, but until then all files are mapped. - a change in logback.xml was made to match the logback for aai/test-config project file for search-data, in order to get the pod up and running with minimal changes to app files. Issue-ID: OOM-947 Change-Id: Ife863ccd50615f40c21a9c72e666d4ab14c6011e Signed-off-by: Keren Joseph <keren.joseph@amdocs.com> Signed-off-by: Karen Joseph <keren.joseph@amdocs.com> Signed-off-by: Keren Joseph <keren.joseph@amdocs.com>
Diffstat (limited to 'charts/aai-sparky-be/resources/config/schemas')
-rw-r--r--charts/aai-sparky-be/resources/config/schemas/autoSuggestMappings.json10
-rw-r--r--charts/aai-sparky-be/resources/config/schemas/autoSuggestSettings.json21
-rw-r--r--charts/aai-sparky-be/resources/config/schemas/dynamicMappings.json14
-rw-r--r--charts/aai-sparky-be/resources/config/schemas/entityCountHistoryMappings.json16
-rw-r--r--charts/aai-sparky-be/resources/config/schemas/es_mappings.json32
-rw-r--r--charts/aai-sparky-be/resources/config/schemas/es_settings.json36
6 files changed, 129 insertions, 0 deletions
diff --git a/charts/aai-sparky-be/resources/config/schemas/autoSuggestMappings.json b/charts/aai-sparky-be/resources/config/schemas/autoSuggestMappings.json
new file mode 100644
index 0000000..7857617
--- /dev/null
+++ b/charts/aai-sparky-be/resources/config/schemas/autoSuggestMappings.json
@@ -0,0 +1,10 @@
+{
+ "properties" : {
+ "entity_suggest" : {
+ "type" : "completion",
+ "payloads" : true,
+ "analyzer" : "custom_analyzer",
+ "preserve_position_increments": false
+ }
+ }
+} \ No newline at end of file
diff --git a/charts/aai-sparky-be/resources/config/schemas/autoSuggestSettings.json b/charts/aai-sparky-be/resources/config/schemas/autoSuggestSettings.json
new file mode 100644
index 0000000..4525be1
--- /dev/null
+++ b/charts/aai-sparky-be/resources/config/schemas/autoSuggestSettings.json
@@ -0,0 +1,21 @@
+{
+ "analysis": {
+ "filter": {
+ "eng_stop": {
+ "type": "stop",
+ "stopwords": "_english_"
+ }
+ },
+ "analyzer": {
+ "custom_analyzer": {
+ "type": "custom",
+ "tokenizer": "standard",
+ "filter": [
+ "lowercase",
+ "asciifolding",
+ "eng_stop"
+ ]
+ }
+ }
+ }
+ } \ No newline at end of file
diff --git a/charts/aai-sparky-be/resources/config/schemas/dynamicMappings.json b/charts/aai-sparky-be/resources/config/schemas/dynamicMappings.json
new file mode 100644
index 0000000..09a00ac
--- /dev/null
+++ b/charts/aai-sparky-be/resources/config/schemas/dynamicMappings.json
@@ -0,0 +1,14 @@
+{
+ "dynamic_templates": [
+ {
+ "strings": {
+ "match_mapping_type": "string",
+ "match": "*",
+ "mapping": {
+ "type": "string",
+ "index": "not_analyzed"
+ }
+ }
+ }
+ ]
+} \ No newline at end of file
diff --git a/charts/aai-sparky-be/resources/config/schemas/entityCountHistoryMappings.json b/charts/aai-sparky-be/resources/config/schemas/entityCountHistoryMappings.json
new file mode 100644
index 0000000..84e3aec
--- /dev/null
+++ b/charts/aai-sparky-be/resources/config/schemas/entityCountHistoryMappings.json
@@ -0,0 +1,16 @@
+{
+ "properties": {
+ "count": {
+ "type": "long"
+ },
+ "entityType": {
+ "type": "string",
+ "index": "not_analyzed"
+ },
+ "timestamp": {
+ "type": "date",
+ "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||MM/dd/yyyy||yyyyMMdd'T'HHmmssZ"
+ }
+ }
+}
+
diff --git a/charts/aai-sparky-be/resources/config/schemas/es_mappings.json b/charts/aai-sparky-be/resources/config/schemas/es_mappings.json
new file mode 100644
index 0000000..216e3d9
--- /dev/null
+++ b/charts/aai-sparky-be/resources/config/schemas/es_mappings.json
@@ -0,0 +1,32 @@
+{
+ "properties": {
+ "entityType": {
+ "type": "string",
+ "analyzer": "ngram_analyzer",
+ "search_analyzer": "ngram_analyzer"
+ },
+ "entityPrimaryKeyValue": {
+ "type": "string",
+ "index": "not_analyzed"
+ },
+ "searchTagIDs": {
+ "type": "string"
+ },
+ "searchTags": {
+ "type": "string",
+ "analyzer": "ngram_analyzer"
+ },
+ "crossEntityReferenceValues": {
+ "type": "string",
+ "analyzer": "ngram_analyzer"
+ },
+ "link": {
+ "type": "string",
+ "index": "not_analyzed"
+ },
+ "lastmodTimestamp": {
+ "type": "date",
+ "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd HH:mm:ss||MM/dd/yyyy||yyyyMMdd'T'HHmmssZ"
+ }
+ }
+} \ No newline at end of file
diff --git a/charts/aai-sparky-be/resources/config/schemas/es_settings.json b/charts/aai-sparky-be/resources/config/schemas/es_settings.json
new file mode 100644
index 0000000..21a357c
--- /dev/null
+++ b/charts/aai-sparky-be/resources/config/schemas/es_settings.json
@@ -0,0 +1,36 @@
+{
+ "analysis": {
+ "filter": {
+ "ngram_filter": {
+ "type": "nGram",
+ "min_gram": 1,
+ "max_gram": 50,
+ "token_chars": [
+ "letter",
+ "digit",
+ "punctuation",
+ "symbol"
+ ]
+ }
+ },
+ "analyzer": {
+ "ngram_analyzer": {
+ "type": "custom",
+ "tokenizer": "whitespace",
+ "filter": [
+ "lowercase",
+ "asciifolding",
+ "ngram_filter"
+ ]
+ },
+ "whitespace_analyzer": {
+ "type": "custom",
+ "tokenizer": "whitespace",
+ "filter": [
+ "lowercase",
+ "asciifolding"
+ ]
+ }
+ }
+ }
+} \ No newline at end of file