I'm new to elastic search and I was wondering if it's possible to delete a custom analyzer or a custom filter from an index..
For example, imagine the following index settings:
"settings" : {
"analysis": {
"filter":{
"filter_metaphone":{
"encoder": "metaphone",
"type": "phonetic",
"replace": "false"
},
"filter_unused":{
"type": "edgeNGram",
"max_gram": "10",
"min_gram": "1"
}
},
"analyzer":{
"name":{
"type": "custom",
"filter": ["filter_metaphone"],
"tokenizer": "standard"
}
}
}
}
Is there any way to delete via curl the filter "filter_unused" without remove and create the index with a new settings configuration?
after setting all values to null, the analyzer has disappeared for me (ES 6.8)
{
"analysis": {
"analyzer": {
"my_search_analyzer" : {
"filter" : null,
"tokenizer" : null
}
}
}
}
No, there is not a way to delete one specific analyzer from an index setting at this time.
You could add new analyzers though. That API is documented here.
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html#indices-update-settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With