Elasticsearch渗透映射错误

时间:2017-08-16 11:12:15

标签: elasticsearch mapping

我想在elasticsearch中使用percolate查询。但我无法设置映射。我收到以下错误。我的错在哪里?

    PUT /my-index
    {
        "mappings": {
            "doctype": {
                "properties": {
                    "message": {
                        "type": "string"
                    }
                }
            },
            "queries": {
                "properties": {
                    "query": {
                        "type": "percolator"
                    }
                }
            }
        }
    }

错误讯息:

        {
           "error": {
              "root_cause": [
                 {
                    "type": "mapper_parsing_exception",
                    "reason": "No handler for type [percolator] declared on field [query]"
                 }
              ],
              "type": "mapper_parsing_exception",
              "reason": "Failed to parse mapping [queries]: No handler for type [percolator] declared on field [query]",
              "caused_by": {
                 "type": "mapper_parsing_exception",
                 "reason": "No handler for type [percolator] declared on field [query]"
              }
           },
           "status": 400
        }

由于

0 个答案:

没有答案