introduce customized analyzer for wherehows es index
{
+ "settings": {
+ "analysis": {
+ "analyzer": {
+ "keyword_analyzer": {
+ "type": "custom",
+ "tokenizer": "keyword",
+ "filter": [
+ "lowercase"
+ ]
+ }
+ }
+ }
+ },
"mappings": {
"metric": {
"properties": {
"tags": {
"type": "string"
},
- "urn": {
+ "metric_urn": {
"type": "string"
},
"wiki_url": {
"type": "string"
},
"name": {
- "type": "string"
+ "type": "string",
+ "analyzer": "keyword_analyzer"
},
"name_suggest": {
"type": "completion",
"type": "long"
},
"urn": {
- "type": "string"
+ "type": "string",
+ "analyzer": "keyword_analyzer"
}
}
},
