Determine which terms exist in which doc from Multifield Search

I am performing a search with 100 terms on various fields.
How can I determine, which combination of the searched terms exist in each found doc, without manually parsing the docs?

GET /logs/_search
{
  "query": {
    "bool": {
      "should": [
        { "match": { "service":  "BrFiltUpx" }},
        { "match": { "service":  "WinRM" }},
        ...
        { "match": { "error":  "123" }},
        { "match": { "error":  "444" }},
        ...
      ]
    }
  }
}

You can add _name in every query. See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-named-queries-and-filters.html

Thank you!
That could cause me to dig for hours

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.