title: How to create request body for Python Elasticsearch mSearch
body: <p>I'm trying to run <a href="http://elasticsearch-py.readthedocs.org/en/master/api.html#elasticsearch.Elasticsearch.msearch" rel="noreferrer">a multi search request</a> on the Elasticsearch Python client. I can run the singular search correctly but can't figure out how to format the request for a msearch. According to the documentation, the body of the request needs to be formatted as:</p>
  
  <blockquote>
    <p>The request definitions (metadata-search request definition pairs), as
    either a newline separated string, or a sequence of dicts to serialize
    (one per row).</p>
  </blockquote>
  
  <p>What's the best way to create this request body? I've been searching for examples but can't seem to find any.</p>