Alternative to _explain API for searching in a specific document, given a query

HI everybody,

I have a document and I would like to know if a specific query matches or not to it. The _explain API returns a : :matched property which would be sufficient for me, but it also returns the :explanation object, which is a very big object and not necessary for my purpose.

Is there anything like

GET <index>/<type>/<ID>/_matches
{
    "query" : {
        "match" : { "message" : "<my query>" }
      }
}

Thanks a lot,

Guilherme

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