Elasticsearch创建无text类型的索引,只包含keyword

PUT /es_company_3
{
    "mappings": {
        "company_3": {
            "properties": {
            "approvedtime" : {
            "type" : "date"
          },
          "base" : {
            "type" : "keyword"
          },
          "crawledtime" : {
            "type" : "date"
          },
          "createtime" : {
            "type" : "long"
          },
          "entname" : {
            "type" : "keyword"
          },
          "enttype" : {
            "type" : "keyword"
          },
          "enttypeno" : {
            "type" : "long"
          },
          "estime" : {
            "type" : "date"
          },
          "flag" : {
            "type" : "long"
          },
          "frid" : {
            "type" : "long"
          },
          "frname" : {
            "type" : "keyword"
          },
          "fromtime" : {
            "type" : "date"
          },
          "frtype" : {
            "type" : "long"
          },
          "id" : {
            "type" : "long"
          },
          "listcode" : {
            "type" : "keyword"
          },
          "namesuffix" : {
            "type" : "keyword"
          },
          "opscope" : {
            "type" : "keyword"
          },
          "orgapprovedinstitute" : {
            "type" : "keyword"
          },
          "orgno" : {
            "type" : "keyword"
          },
          "ownershipstake" : {
            "type" : "keyword"
          },
          "parentid" : {
            "type" : "long"
          },
          "property1" : {
            "type" : "keyword"
          },
          "property2" : {
            "type" : "keyword"
          },
          "property3" : {
            "type" : "keyword"
          },
          "property4" : {
            "type" : "keyword"
          },
          "property5" : {
            "type" : "keyword"
          },
          "regactlcap" : {
            "type" : "keyword"
          },
          "regaddress" : {
            "type" : "keyword"
          },
          "regcap" : {
            "type" : "keyword"
          },
          "regno" : {
            "type" : "keyword"
          },
          "regorg" : {
            "type" : "keyword"
          },
          "regstatus" : {
            "type" : "keyword"
          },
          "sourceflag" : {
            "type" : "keyword"
          },
          "sourceupdatetime" : {
            "type" : "date"
          },
          "totime" : {
            "type" : "date"
          }
            }
        }
    }
}

 

你可能感兴趣的:(Elasticsearch)