Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wireframe/914440 to your computer and use it in GitHub Desktop.
Save wireframe/914440 to your computer and use it in GitHub Desktop.
curl -XDELETE http://localhost:9200/test
curl -XPUT http://localhost:9200/test -d "
{\"analysis.analyzer.default.tokenizer\":\"standard\",\"mappings\":{\"users\":{\"properties\":{\"name\":{\"index\":\"not_analyzed\",\"type\":\"string\"}}}},\"analysis.analyzer.default.filter\":[\"standard\",\"lowercase\",\"porterStem\"]}
"
curl http://localhost:9200/test/_status | jsonpretty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment