'Match a query with a document'

def percolate(self, index, doc_types, query):

    if (doc_types is None):
        raise RuntimeError('percolate()    must    be    supplied    with    at    least    one    doc_type')
    path = self._make_path(index, doc_types, '_percolate')
    body = self._encode_query(query)
    return self._send_request('GET', path, body)
