But if I have to construct a completely new request, there is no use for my saved one. Wouldn't it be nice if for example management could design the searches they want, and me as a developer just could access that search through the REST-API and use the result.
Another thing that I haven't succeded with yet is to use aggs in my REST-requests. Is that possible?
Not in the:
GET tweets-*/_search
{
"query": {
"query_string": {
"query": "_type:avocado"
}
}
}
-format, I want it in:
http://localhost:9200/monitor/_search?q=activityName=beslut
-format to be able to work further with it.