Once last try before I give up.
What I'm asking for is similar to what is possible with percolate where name is provided for the search.
GET /my-index/_search
{
"query" : {
"bool" : {
"should" : [
{
"percolate" : {
"field" : "query",
"document" : {
"message" : "bonsai tree"
},
"name": "query1"
}
},
{
"percolate" : {
"field" : "query",
"document" : {
"message" : "tulip flower"
},
"name": "query2"
}
}
]
}
}
}
Documented here : https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-percolate-query.html#_specifying_multiple_percolate_queries