Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wikipeida index elasticsearch mapping
{
"wikipages" : {
"properties" : {
"timestamp":{
"type" : "date"
},
"title" : {
"type":"multi_field",
"fields": {
"title" : {"type":"string"},
"sort" : {"type":"string", "analyzer":"keyword_lowercase_truncate"}
}
},
"comment" : {"type" : "string", "analyzer":"text_ascii"},
"contributorName" : {"type" : "string", "index":"not_analyzed"},
"text" : {"type" : "string", "analyzer":"text_ascii"}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment