Skip to content

Instantly share code, notes, and snippets.

@impy88
Last active August 29, 2015 14:23
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 impy88/d0cb92888a63cedc6a23 to your computer and use it in GitHub Desktop.
Save impy88/d0cb92888a63cedc6a23 to your computer and use it in GitHub Desktop.
Rule type mapping for ES 1.6
{
"rule":{
"properties":{
"doc": {
"properties":{
"region":{
"type":"geo_shape",
"store":true
},
"rules":{
"type":"nested",
"store":true,
"properties":{
"activeTimes":{
"store":true,
"properties":{
"startDay":{
"store":true,
"type":"integer"
},
"endDay":{
"store":true,
"type":"integer"
},
"startTime":{
"store":true,
"type":"date",
"format":"HH:mm"
},
"endTime":{
"store":true,
"type":"date",
"format":"HH:mm"
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment