summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/aggregatevnf_schema.json17
-rw-r--r--src/main/resources/autosuggest_schema.json31
2 files changed, 48 insertions, 0 deletions
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