Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PUT /my-index
{
"settings": {
"index": {
"number_of_replicas": "0",
"number_of_shards": "1"
}
},
"mappings": {
"_doc": {
"properties": {
"message": {
"type": "text"
},
"query": {
"type": "percolator"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment