Created
June 14, 2013 15:38
-
-
Save dadoonet/5782816 to your computer and use it in GitHub Desktop.
Testing delete and recreate issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "clean index" | |
curl -XDELETE 'http://localhost:9200/test?pretty' ; echo | |
echo "PUT Tweet" | |
curl -XPUT 'http://localhost:9200/test/tweet/1?pretty' -d ' | |
{ | |
"myfield": "Hello world" | |
} | |
' ; echo | |
# Refresh docs | |
echo "Refresh index" | |
curl -XPOST 'http://localhost:9200/test/_refresh' ; echo | |
echo "Search" | |
curl -XGET 'http://localhost:9200/test/tweet/_count?pretty' ; echo | |
echo "DELETE Tweet" | |
curl -XDELETE 'http://localhost:9200/test/tweet/1?pretty' ; echo | |
# Refresh docs | |
echo "Refresh index" | |
curl -XPOST 'http://localhost:9200/test/_refresh' ; echo | |
echo "Search" | |
curl -XGET 'http://localhost:9200/test/tweet/_count?pretty' ; echo | |
echo "PUT Tweet" | |
curl -XPUT 'http://localhost:9200/test/tweet/1?pretty' -d ' | |
{ | |
"myfield": "Hello world" | |
} | |
' ; echo | |
# Refresh docs | |
echo "Refresh index" | |
curl -XPOST 'http://localhost:9200/test/_refresh' ; echo | |
echo "Search" | |
curl -XGET 'http://localhost:9200/test/tweet/_count?pretty' ; echo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment