How to make union query on Elasticsearch?
The way to go is MultiSearch
curl -XGET 'http://127.0.0.1:9200/indexname/_msearch' -d '{}{"query" : {"term" : {"type" : "text"}}, "size" : 3}{}{"query" : {"term" : {"type" : "word"}}, "size" : 3}'
The way to go is MultiSearch
curl -XGET 'http://127.0.0.1:9200/indexname/_msearch' -d '{}{"query" : {"term" : {"type" : "text"}}, "size" : 3}{}{"query" : {"term" : {"type" : "word"}}, "size" : 3}'