I'm using watcher, the reason I ask this is because both are different APIs but the field looks pretty much similar
GET /_search
{
"query": {
"bool": {
"should": [
{ "match": { "title": "War and Peace" }},
{ "match": { "author": "Leo Tolstoy" }}
]
}
}
}
Watcher
input" : {
"search" : {
"request" : {
"indices" : [ "logs" ],
"types" : [ "event" ],
"body" : {
"query" : { "match_all" : {}}
}
}
}
}
My question is if I pass the query similar to elasticsearch using watcher API is it correct or it will not work?