Skip to content

Instantly share code, notes, and snippets.

@rokcarl
Created June 15, 2021 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rokcarl/42c9d06a29c7d6db830c1840be1c49a8 to your computer and use it in GitHub Desktop.
Save rokcarl/42c9d06a29c7d6db830c1840be1c49a8 to your computer and use it in GitHub Desktop.
PUT stat_customers
{
"mappings" : {
"properties" : {
"credits" : {"type" : "double"},
"requests": {"type" : "double"},
"error_codes.4xx": {"type" : "double"},
"error_codes.5xx": {"type" : "double"},
"day": {"type" : "date"},
"customer": {"type" : "keyword"}
}
},
"settings" : {
"index" : {
"number_of_shards" : "1",
"auto_expand_replicas" : "0-all"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment