弹性搜索 'failed to find filter under name '

Elasticsearch 'failed to find filter under name '

我刚开始使用 ES 5.2.2 试用支持俄语词法的广告分析器。 运行 ES 使用 docker,我使用安装的 elasticsearch-analysis-morphology 创建图像。 然后我: 创建索引, 然后设置

之后进行设置,所有 sems 都正确

curl http://localhost:9200/news/_settings?pretty
{
"news" : {
"settings" : {
  "index" : {
    "number_of_shards" : "5",
    "provided_name" : "news",
    "creation_date" : "1489343955314",
    "analysis" : {
      "analyzer" : {
        "russian_analyzer" : {
          "filter" : [
            "stop",
            "custom_stop",
            "russian_stop",
            "custom_word_delimiter",
            "lowercase",
            "russian_morphology",
            "english_morphology"
          ],
          "char_filter" : [
            "html_strip",
            "ru"
          ],
          "type" : "custom",
          "tokenizer" : "standard"
        }
      },
      "char_filter" : {
        "ru" : {
          "type" : "mapping",
          "mappings" : [
            "Ё=>Е",
            "ё=>е"
          ]
        }
      },
      "filter:" : {
        "custom_stop" : {
          "type" : "stop",
          "stopwords" : [
            "n",
            "r"
          ]
        },
        "russian_stop" : {
          "ignore_case" : "true",
          "type" : "stop",
          "stopwords" : [
            "а",
            "без",
          ]
        },
        "custom_word_delimiter" : {
          "split_on_numerics" : "false",
          "generate_word_parts" : "false",
          "preserve_original" : "true",
          "catenate_words" : "true",
          "generate_number_parts" : "true",
          "catenate_all" : "true",
          "split_on_case_change" : "false",
          "type" : "word_delimiter",
          "catenate_numbers" : "false"
        }
      }
    },
    "number_of_replicas" : "1",
    "uuid" : "IUkHHwWrStqDMG6fYOqyqQ",
    "version" : {
      "created" : "5020299"
    }
  }
 }
}
}

然后我尝试打开索引,但 ES 给我这个:

{
"error" : {
"root_cause" : [
  {
    "type" : "exception",
    "reason" : "Failed to verify index [news/IUkHHwWrStqDMG6fYOqyqQ]"
  }
],
"type" : "exception",
"reason" : "Failed to verify index [news/IUkHHwWrStqDMG6fYOqyqQ]",
"caused_by" : {
  "type" : "illegal_argument_exception",
  "reason" : "Custom Analyzer [russian_analyzer] failed to find filter         under name [custom_stop]"
}
},
"status" : 500
}

不明白我哪里错了。 谁能看出问题出在哪里?

"filter" 部分有错误

 was:

look here this This colon was a mistake
       |
       v
"filter:" : {
    "custom_stop" : {
      "type" : "stop",
      "stopwords" : [
        "n",
        "r"
      ]
    }...

感谢@asettou 和@andrey-morozov