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