Skip to content

Instantly share code, notes, and snippets.

@shivam-tripathi
Created February 26, 2018 08:33
Show Gist options
  • Save shivam-tripathi/3fdd8da3383e53f443e51706332146d2 to your computer and use it in GitHub Desktop.
Save shivam-tripathi/3fdd8da3383e53f443e51706332146d2 to your computer and use it in GitHub Desktop.
Elastic mapping
"defaultAlias": {
"properties": {
"sortName": {
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
},
"primary": {
"type": "boolean"
},
"id": {
"type": "long"
},
"name": {
"fields": {
"autocomplete": {
"type": "text",
"analyzer": "edge"
},
"search": {
"type": "text",
"analyzer": "trigrams"
}
},
"type": "text"
},
"languageId": {
"type": "long"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment