Skip to content

Instantly share code, notes, and snippets.

@jtibshirani
Created March 31, 2015 23:16
Show Gist options
  • Save jtibshirani/f4acab68e7e505fb1778 to your computer and use it in GitHub Desktop.
Save jtibshirani/f4acab68e7e505fb1778 to your computer and use it in GitHub Desktop.
search_quote_analyzer always added to mapping when position_offset_gap is specified
curl -XDELETE 'localhost:9200/test'
curl -XPOST 'localhost:9200/test' -d '
{
"settings": {
"number_of_replicas": 0,
"number_of_shards": 1
},
"mappings": {
"doc" : {
"properties" : {
"message" : {
"type" : "string",
"store" : true,
"position_offset_gap": 1000
}
}
}
}
}'
curl -XGET 'localhost:9200/test/_mapping?pretty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment