Created
May 27, 2013 13:02
-
-
Save Mpdreamz/5656950 to your computer and use it in GitHub Desktop.
Named Filters missing matched_filters
This file contains 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
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" | |
} | |
} | |
] | |
} | |
} | |
} |
This file contains 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
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