Skip to content

Instantly share code, notes, and snippets.

@rjbaker
Last active January 27, 2016 19:49
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 rjbaker/7752003e7d4990618dd2 to your computer and use it in GitHub Desktop.
Save rjbaker/7752003e7d4990618dd2 to your computer and use it in GitHub Desktop.
users index mapping
{
"users-1-2": {
"mappings": {
"user": {
"dynamic": "strict",
"properties": {
"class": {
"type": "string"
},
"devices": {
"type": "nested",
"properties": {
"arn": {
"type": "string",
"index": "not_analyzed"
},
"class": {
"type": "string"
},
"identifier": {
"type": "string",
"index": "not_analyzed"
},
"idiom": {
"type": "string"
},
"name": {
"type": "string"
},
"system": {
"type": "string",
"index": "not_analyzed"
},
"token": {
"type": "string",
"index": "not_analyzed"
}
}
},
"locations": {
"type": "nested",
"properties": {
"address": {
"type": "string"
},
"class": {
"type": "string"
},
"identifier": {
"type": "string",
"index": "not_analyzed"
},
"name": {
"type": "string"
},
"options": {
"properties": {
"class": {
"type": "string"
},
"tracked": {
"type": "boolean"
}
}
},
"region": {
"type": "geo_shape",
"tree_levels": 7
},
"settings": {
"type": "nested",
"properties": {
"class": {
"type": "string"
},
"event": {
"type": "integer"
},
"notify": {
"type": "boolean"
},
"severity": {
"type": "double"
},
"sound": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment