Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tstibbs
Created July 15, 2014 08:40
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 tstibbs/645e01c5dcdfa9d2a193 to your computer and use it in GitHub Desktop.
Save tstibbs/645e01c5dcdfa9d2a193 to your computer and use it in GitHub Desktop.
"matched_queries" does not include queries within a wrapper query
curl -XPUT 'http://localhost:9200/index'
curl -XPUT 'http://localhost:9200/index/thing/1' –d '
{
"stuff": "blah"
}
'
# works
curl -XPOST 'http://localhost:9200/index/_search' –d '
{
"query": {
"match": {
"stuff": {
"_name": "query1",
"query": "blah"
}
}
}
}
'
# doesn't work
curl -XPOST 'http://localhost:9200/index/_search' –d '
{
"query": {
"wrapper": {
"query": "eyJtYXRjaCI6IHsic3R1ZmYiOiB7Il9uYW1lIjogInF1ZXJ5MSIsICJxdWVyeSI6ICJibGFoIn19fQ=="
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment