Skip to content

Instantly share code, notes, and snippets.

@Mpdreamz
Created May 27, 2013 13:02
Show Gist options
  • Save Mpdreamz/5656950 to your computer and use it in GitHub Desktop.
Save Mpdreamz/5656950 to your computer and use it in GitHub Desktop.
Named Filters missing matched_filters
POST http://127.0.0.1:9200/nest_test_data-6612/elasticsearchprojects/_search?pretty=true HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: 127.0.0.1:9200
Content-Length: 429
Expect: 100-continue
{
"from": 0,
"size": 10,
"filter": {
"bool": {
"should": [
{
"terms": {
"name.sort": [
"em-elasticsearch"
],
"_name": "myfilter"
}
},
{
"terms": {
"name.sort": [
"nest"
],
"_name": "myfilter2"
}
}
]
}
}
}
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 3987
{
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 2,
"max_score" : 1.0,
"hits" : [ {
"_index" : "nest_test_data-6612",
"_type" : "elasticsearchprojects",
"_id" : "0",
"_score" : 1.0, "_source" : {"id":0,"name":"em-elasticsearch" }
}, {
"_index" : "nest_test_data-6612",
"_type" : "elasticsearchprojects",
"_id" : "7",
"_score" : 1.0, "_source" : {"id":7,"name":"em-elasticsearch" }
} ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment