POST /vue_article/_mapping
{
      "properties" : {
         "id" : {
          "type" : "integer"
        },
        "author" : {
          "type" : "text"
        },
        "avatar" : {
          "type" : "text"
        },
        "author_id" : {
          "type" : "text"
        },
        "content" : {
          "type" : "text",
          "analyzer": "ik_max_word",
          "search_analyzer": "ik_smart"
        },
        "create_date" : {
          "type" : "date",
          "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
        },
        "des" : {
          "type" : "text",
          "analyzer": "ik_max_word",
          "search_analyzer": "ik_smart"
        },
  
        "image_url" : {
          "type" : "text"
        },
        "lastmodified_time" : {
          "type" : "date",
          "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
        },
        "markdown" : {
          "type" : "text"
        },
        "status" : {
          "type" : "integer"
        },
        "tag" : {
          "type" : "text"
        },
        "tag_id" : {
          "type" : "long"
        },
        "title" : {
          "type" : "text",
          "analyzer": "ik",
          "search_analyzer": "ik_smart"
        },
        "user_id" : {
          "type" : "integer"
        }
      }
}
Last modification:February 13th, 2020 at 03:51 pm
如果觉得我的文章对你有用,请随意赞赏