Skip to content

Instantly share code, notes, and snippets.

@beall49
Last active May 9, 2018 23:14
Show Gist options
  • Save beall49/0cd22f28318563c9f2ae8c7a4228a32b to your computer and use it in GitHub Desktop.
Save beall49/0cd22f28318563c9f2ae8c7a4228a32b to your computer and use it in GitHub Desktop.
//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