def percolate(self, index, doc_types, query):
if doc_types is None:<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>path = self._make_path(index, doc_types, '<STR_LIT>')<EOL>body = self._encode_query(query)<EOL>return self._send_request('<STR_LIT:GET>', path, body)<EOL>
Match a query with a document