Skip to content

Instantly share code, notes, and snippets.

@crutch
Last active August 29, 2015 13:57
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 crutch/04cd5acbd84eee04d683 to your computer and use it in GitHub Desktop.
Save crutch/04cd5acbd84eee04d683 to your computer and use it in GitHub Desktop.
match_phrase_prefix broken in 1.1.0
# Creation of an index and one document in it
curl -XPOST 'localhost:9200/twitter/tweet/1' -d '
{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elasticsearch"
}'
# Following will work on 1.0.2 but fail on 1.1.0
curl -XPOST 'localhost:9200/twitter/tweet/_search' -d '
{
"query": {
"match_phrase_prefix": {
"message": "try"
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment