Skip to content

Instantly share code, notes, and snippets.

@imotov
Created August 10, 2012 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imotov/3309993 to your computer and use it in GitHub Desktop.
Save imotov/3309993 to your computer and use it in GitHub Desktop.
Repro for double id problem
#!/bin/sh
curl -XDELETE "http://localhost:9200/test"
curl -XPUT "http://localhost:9200/test" -d '{
"mappings" : {
"rec" : {
"_id" : {"store" : "yes"}
}
}
}'
curl -XPUT "http://localhost:9200/test/rec/1" -d '{
"_id": "1"
}'
curl -XPUT "http://localhost:9200/test/rec/2" -d '{
}'
curl -XPOST "http://localhost:9200/test/_refresh"
echo
curl "localhost:9200/test/_search?fields=_id,message&pretty=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment