Merge pull request #765 from camelliazhang/master

introduce customized analyzer for wherehows es index
This commit is contained in:
na zhang 2017-09-22 17:00:32 -07:00 committed by GitHub
commit 2c1942e21a

View File

@ -1,4 +1,17 @@
{ {
"settings": {
"analysis": {
"analyzer": {
"keyword_analyzer": {
"type": "custom",
"tokenizer": "keyword",
"filter": [
"lowercase"
]
}
}
}
},
"mappings": { "mappings": {
"metric": { "metric": {
"properties": { "properties": {
@ -81,7 +94,7 @@
"tags": { "tags": {
"type": "string" "type": "string"
}, },
"urn": { "metric_urn": {
"type": "string" "type": "string"
}, },
"wiki_url": { "wiki_url": {
@ -120,7 +133,8 @@
"type": "string" "type": "string"
}, },
"name": { "name": {
"type": "string" "type": "string",
"analyzer": "keyword_analyzer"
}, },
"name_suggest": { "name_suggest": {
"type": "completion", "type": "completion",
@ -145,7 +159,8 @@
"type": "long" "type": "long"
}, },
"urn": { "urn": {
"type": "string" "type": "string",
"analyzer": "keyword_analyzer"
} }
} }
}, },