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": {
"metric": {
"properties": {
@ -81,7 +94,7 @@
"tags": {
"type": "string"
},
"urn": {
"metric_urn": {
"type": "string"
},
"wiki_url": {
@ -120,7 +133,8 @@
"type": "string"
},
"name": {
"type": "string"
"type": "string",
"analyzer": "keyword_analyzer"
},
"name_suggest": {
"type": "completion",
@ -145,7 +159,8 @@
"type": "long"
},
"urn": {
"type": "string"
"type": "string",
"analyzer": "keyword_analyzer"
}
}
},