Skip to content

Instantly share code, notes, and snippets.

@namkyu
Last active December 20, 2017 06:27
Show Gist options
  • Select an option

  • Save namkyu/dacb045ac296160824fd76a47d686249 to your computer and use it in GitHub Desktop.

Select an option

Save namkyu/dacb045ac296160824fd76a47d686249 to your computer and use it in GitHub Desktop.
elasticsearch settings, mappings json file #elasticsearch

settings.json

{
  "number_of_replicas": "1",
  "number_of_shards": "5",
  "refresh_interval": "1s",
  "index.store.type": "fs"
}

mappings.json

{
  "properties": {
    "guid": {
      "index": "not_analyzed",
      "type": "string",
      "include_in_all": false
    },
    "goodsId": {
      "index": "not_analyzed",
      "type": "integer",
      "include_in_all": false
    },
    "shopId": {
      "index": "not_analyzed",
      "type": "integer",
      "include_in_all": false
    },
    "registered": {
      "index": "not_analyzed",
      "format": "yyyy.MM.dd hh:mm:ss",
      "type": "date",
      "include_in_all": false
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment