def get(self, index, doc_type, id, fields=None, model=None, **query_params):
path = make_path(index, doc_type, id)<EOL>if fields is not None:<EOL><INDENT>query_params["<STR_LIT>"] = "<STR_LIT:U+002C>".join(fields)<EOL><DEDENT>model = model or self.model<EOL>return model(self, self._send_request('<STR_LIT:GET>', path, params=query_params))<EOL>
Get a typed JSON document from an index based on its id.