Skip to content

Instantly share code, notes, and snippets.

@nl5887
Created January 24, 2016 13:09
Show Gist options
  • Select an option

  • Save nl5887/8efb6c13a32714a46afe to your computer and use it in GitHub Desktop.

Select an option

Save nl5887/8efb6c13a32714a46afe to your computer and use it in GitHub Desktop.
Elasticsearch - Update mapping
curl -X PUT 'http://localhost:9200/proxy/pairs/_mapping' -d \'{
"pairs": {
"properties": {
"request" : {
"properties" : {
"headers" : {
"properties" : {
"Authorization": {
"type": "string",
"fields": {
"raw": { "type": "string", "index": "not_analyzed" }
}
}
}
}
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment