Skip to content

Instantly share code, notes, and snippets.

@wangganyu188
wangganyu188 / create_index.sh
Created March 16, 2017 09:59 — forked from bonzanini/create_index.sh
Elasticsearch/Python test
curl -XPOST http://localhost:9200/test/articles/1 -d '{
"content": "The quick brown fox"
}'
curl -XPOST http://localhost:9200/test/articles/2 -d '{
"content": "What does the fox say?"
}'
curl -XPOST http://localhost:9200/test/articles/3 -d '{
"content": "The quick brown fox jumped over the lazy dog"
}'
curl -XPOST http://localhost:9200/test/articles/4 -d '{
@wangganyu188
wangganyu188 / !Elasticsearch Samples.md
Created October 14, 2015 06:58 — forked from rajanm/!Elasticsearch Samples.md
Elasticsearch Sample Scripts

This gist contains various example scripts for Elasticsearch. These scripts have been tested with Elasticsearch Server v1.5.2. These scripts can be run from shell/terminal in a Unix or from git bash in a Windows.

For a full fledged Java sample project, refer - ElasticsearchJavaSample