From bf99eb77b31a4cfbc590762cc6ba669820c21439 Mon Sep 17 00:00:00 2001 From: rv871f Date: Tue, 20 Mar 2018 10:21:42 -0400 Subject: Process VNF event from spike Issue-ID: AAI-899 Change-Id: I2d056734e6af0fe0b4efe92681971e2b74153a0e Signed-off-by: rv871f --- src/main/resources/aggregatevnf_schema.json | 17 ++++++++++++++++ src/main/resources/autosuggest_schema.json | 31 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/main/resources/aggregatevnf_schema.json create mode 100644 src/main/resources/autosuggest_schema.json (limited to 'src/main/resources') diff --git a/src/main/resources/aggregatevnf_schema.json b/src/main/resources/aggregatevnf_schema.json new file mode 100644 index 0000000..03d5627 --- /dev/null +++ b/src/main/resources/aggregatevnf_schema.json @@ -0,0 +1,17 @@ +{ + "mappings": { + "default": { + "dynamic_templates": [{ + "strings": { + "match_mapping_type": "string", + "match": "*", + "mapping": { + "type": "string", + "index": "not_analyzed" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/autosuggest_schema.json b/src/main/resources/autosuggest_schema.json new file mode 100644 index 0000000..99ac031 --- /dev/null +++ b/src/main/resources/autosuggest_schema.json @@ -0,0 +1,31 @@ +{ + "settings": { + "analysis": { + "filter": { + "eng_stop": { + "type": "stop", + "stopwords": "_english_" + } + }, + "analyzer": { + "custom_analyzer": { + "type": "custom", + "tokenizer": "standard", + "filter": ["lowercase", "asciifolding", "eng_stop"] + } + } + } + }, + "mappings": { + "default": { + "properties": { + "entity_suggest": { + "type": "completion", + "payloads": true, + "analyzer": "custom_analyzer", + "preserve_position_increments": false + } + } + } + } +} \ No newline at end of file -- cgit 1.2.3-korg