Skip to content

Instantly share code, notes, and snippets.

@teroxik
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 teroxik/9522e97bddaa3eec34a9 to your computer and use it in GitHub Desktop.
Save teroxik/9522e97bddaa3eec34a9 to your computer and use it in GitHub Desktop.
Elastic search - mapping
//mapping
{
"estest": {
"mappings": {
"es": {
"properties": {
"itemData": {
"type": "nested",
"properties": {
"_id": {
"type": "string"
},
"created": {
"type": "date",
"format": "dateOptionalTime"
},
"destinationData": {
"type": "nested",
"properties": {
"_id": {
"type": "string"
},
"approvals": {
"properties": {
"approvalId": {
"type": "string"
},
"date": {
"type": "date",
"format": "dateOptionalTime"
},
"fromStatus": {
"type": "string"
},
"message": {
"type": "string"
},
"toStatus": {
"type": "string"
},
"transactionId": {
"type": "string"
},
"userId": {
"type": "string"
},
"userName": {
"type": "string"
}
}
},
"comments": {
"properties": {
"commentId": {
"type": "string"
},
"date": {
"type": "date",
"format": "dateOptionalTime"
},
"message": {
"type": "string"
},
"userId": {
"type": "string"
},
"userName": {
"type": "string"
}
}
},
"creationDate": {
"type": "date",
"format": "dateOptionalTime"
},
"deliveryStatus": {
"type": "string"
},
"destinationId": {
"type": "string"
},
"destinationName": {
"type": "string"
},
"destinationStatus": {
"type": "string"
},
"houseNumber": {
"type": "string"
},
"orderItemId": {
"type": "string"
},
"serviceLevel": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"status": {
"type": "string"
},
"videoFormat": {
"type": "string"
}
}
},
"ingest_status": {
"type": "string"
}
}
}
}
}
}
}
}
curl X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment