mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-22 16:18:10 +00:00
Merge pull request #765 from camelliazhang/master
introduce customized analyzer for wherehows es index
This commit is contained in:
commit
2c1942e21a
@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user