Skip to content

Instantly share code, notes, and snippets.

@AmirHo3ein13
Last active April 8, 2019 10:06
Show Gist options
  • Save AmirHo3ein13/57ae822f3743ece7d2a8d06f6cee0c52 to your computer and use it in GitHub Desktop.
Save AmirHo3ein13/57ae822f3743ece7d2a8d06f6cee0c52 to your computer and use it in GitHub Desktop.
virgool - Elasticsearch sample mapping
{
"users": {
"mappings": {
"doc": {
"properties": {
"email": {
"type": "text",
"index": false,
"fields": {
"keyword": {
"type": "keyword",
"index": false
}
}
},
"joined_at": {
"type": "date",
"index": false,
"fields": {
"keyword": {
"type": "keyword",
"index": false
}
},
"format": "yyyy-MM-DD HH:mm:ss"
},
"name": {
"type": "text",
"index": false
},
"username": {
"type": "text",
"analyzer": "english"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment