elasticsearch-rtf icon indicating copy to clipboard operation
elasticsearch-rtf copied to clipboard

"reason": "index_template [rtf] missing"

Open michaeloo0 opened this issue 6 years ago • 2 comments

"reason": "index_template [rtf] missing"

michaeloo0 avatar Sep 20 '17 07:09 michaeloo0

你是按照readme操作的么?问题的上下文是什么?

medcl avatar Oct 10 '17 10:10 medcl

curl -XPUT http://localhost:9200/_template/rtf -d'
{
  "template":   "*", 
  "settings": { "number_of_shards": 1 }, 
  "mappings": {
    "_default_": {
      "_all": { 
        "enabled": true
      },
      "dynamic_templates": [
        {
          "strings": { 
            "match_mapping_type": "string",
            "mapping": {
              "type": "text",
              "analyzer":"ik_max_word",
              "ignore_above": 256,
              "fields": {
                "keyword": {
                  "type":  "keyword"
                }
              }
            }
          }
        }
      ]
    }
  }
}
'

改成这样就对了。。。原来那多一个空格

Loyea avatar Dec 23 '17 23:12 Loyea