Amazon EWS上的弹性1.5。
所以我只想尝试使用以下分析器和标记器,但是会收到错误:
{
"settings": {
"analysis": {
"analyzer": {
"my_edge_ngram_analyzer": {
"tokenizer": "my_edge_ngram_tokenizer",
"filter": [
"lowercase"
]
},
"tokenizer": {
"my_edge_ngram_tokenizer": {
"type": "edgeNGram"
}
}
}
}
}
错误:
{
"error": "IndexCreationException[[pictures_testing] failed to create index];
nested: ElasticsearchIllegalArgumentException[failed to find analyzer type [null] or tokenizer for [tokenizer]]; ",
"status": 400
}
我尝试了各种排列,但还没有任何效果。我做错了什么?
答案 0 :(得分:1)
您需要将令牌设备向上移动一级:
{
"settings": {
"analysis": {
"analyzer": {
"my_edge_ngram_analyzer": {
"tokenizer": "my_edge_ngram_tokenizer",
"filter": [
"lowercase"
]
}
},
"tokenizer": {
"my_edge_ngram_tokenizer": {
"type": "edgeNGram"
}
}
}
}
}