Last active
May 9, 2018 23:14
-
-
Save beall49/0cd22f28318563c9f2ae8c7a4228a32b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-msearch | |
//https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-multi-search.html | |
//https://github.com/elastic/elasticsearch-js/issues/414 | |
GET _msearch | |
{"index" : "packetbeat-*"} | |
{ "query": { "multi_match": { "query":"" } } } | |
{"index" : "packetbeat-*"} | |
{ "query": { "multi_match": { "query":"" } } } | |
GET _msearch | |
{"index" : "liferay"} | |
{ "query": { "multi_match": { "query":"test" } } } | |
{"index" : "keywords"} | |
{ "query": { "multi_match": { "query":"test" } } } | |
GET /_search | |
{ | |
"query": { | |
"multi_match" : { | |
"query":"" | |
} | |
} | |
} | |
GET /_search | |
{ | |
"query": [ | |
{ | |
"index": "packetbeat-", | |
"type": "doc" | |
}, | |
{ | |
"query": { | |
"match_all": {} | |
} | |
}, | |
{ | |
"index": "packetbeat-", | |
"type": "doc" | |
}, | |
{ | |
"query": { | |
"query_string": { | |
"query": "Test 1" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment