summaryrefslogtreecommitdiffstats
path: root/src/main/resources/autosuggest_schema.json
blob: 99ac031913935eb203e19740483abfffef11c9cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
				}
			}
		}
	}
}