ITeye博客

ElasticSearch (7) default index mapping

ilnba · 2012-12-26 13:54 · search · 企业架构 · Markdown

default mapping file : $ES_HOME/conf/default-mapping.json

 

{

  "_default_" : {

      "_ttl" : {

        "enabled" : true,

        "default" : 7776000000

      },

      "_source" : {

        "enabled" : false

      },

      "properties" : {

        "env" : {

          "type" : "string",

          "index" : "not_analyzed"

        },

        "eventbody" : {

          "type" : "string"

        },

        "hostname" : {

          "type" : "string",

          "index" : "not_analyzed"

        },

        "logfilename" : {

          "type" : "string",

          "index" : "not_analyzed"

        },

        "logpath" : {

          "type" : "string",

          "index" : "not_analyzed"

        },

        "logtype" : {

          "type" : "string",

          "index" : "not_analyzed"

        },

        "timestamp" : {

          "type" : "long",

          "ignore_malformed" : false

        },

        "nanotime" : {

          "type" : "long",

          "ignore_malformed" : false

        }

      }

  }

}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。