Skip to content

Instantly share code, notes, and snippets.

@mattfield11
Created August 30, 2017 11:26
Show Gist options
  • Save mattfield11/95b014e5911f5ace545af93b8fe1050a to your computer and use it in GitHub Desktop.
Save mattfield11/95b014e5911f5ace545af93b8fe1050a to your computer and use it in GitHub Desktop.
PUT wikipeople
{
"mappings": {
"wiki_page": {
"properties": {
"text": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
}
}
},
"title":{
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
}
},
"fullurl":{
"type":"text"
},
"suggest" : {
"type" : "completion"
},
"categories": {
"type": "text"
}
}
}
}
}
@mattfield11
Copy link
Author

elasticsearch mapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment