def mget(self, ids, index=None, doc_type=None, **query_params):
if not ids:<EOL><INDENT>return []<EOL><DEDENT>body = []<EOL>for value in ids:<EOL><INDENT>if isinstance(value, tuple):<EOL><INDENT>if len(value) == <NUM_LIT:3>:<EOL><INDENT>a, b, c = value<EOL>body.append({"<STR_LIT>": a,<EOL>"<STR_LIT>": b,<EOL>"<STR_LIT>": c})<EOL><DEDENT>elif len(value) == <NUM_LIT:4>:<EOL><INDENT>a, b, c, d = value<EOL>body.append({"<STR_LIT>": a,<EOL>"<STR_LIT>": b,<EOL>"<STR_LIT>": c,<EOL>"<STR_LIT>": d})<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if index is None:<EOL><INDENT>raise InvalidQuery("<STR_LIT>")<EOL><DEDENT>if doc_type is None:<EOL><INDENT>raise InvalidQuery("<STR_LIT>")<EOL><DEDENT>body.append({"<STR_LIT>": index,<EOL>"<STR_LIT>": doc_type,<EOL>"<STR_LIT>": value})<EOL><DEDENT><DEDENT>results = self._send_request('<STR_LIT:GET>', "<STR_LIT>", body={'<STR_LIT>': body},<EOL>params=query_params)<EOL>if '<STR_LIT>' in results:<EOL><INDENT>model = self.model<EOL>return [model(self, item) for item in results['<STR_LIT>']]<EOL><DEDENT>return []<EOL>
Get multi JSON documents.

ids can be:
    list of tuple: (index, type, id)
    list of ids: index and doc_type are required