title: How to use ResultSet in PyES
body: <p>I'm using PyES to use ElasticSearch in Python.
  Typically, I build my queries in the following format:</p>
  
  <pre><code># Create connection to server.
  conn = ES('127.0.0.1:9200')
  
  # Create a filter to select documents with 'stuff' in the title.
  myFilter = TermFilter("title", "stuff")
  
  # Create query.
  q = FilteredQuery(MatchAllQuery(), myFilter).search()
  
  # Execute the query.
  results = conn.search(query=q, indices=['my-index'])
  
  print type(results)
  # &gt; &lt;class 'pyes.es.ResultSet'&gt;
  </code></pre>
  
  <p>And this works perfectly. My problem begins when the query returns a large list of documents.
  Converting the results to a list of dictionaries is computationally demanding, so I'm trying to return the query results already in a dictionary. I came across with this documentation:</p>
  
  <p><a href="http://pyes.readthedocs.org/en/latest/faq.html#id3" rel="nofollow">http://pyes.readthedocs.org/en/latest/faq.html#id3</a>
  <a href="http://pyes.readthedocs.org/en/latest/references/pyes.es.html#pyes.es.ResultSet" rel="nofollow">http://pyes.readthedocs.org/en/latest/references/pyes.es.html#pyes.es.ResultSet</a>
  <a href="https://github.com/aparo/pyes/blob/master/pyes/es.py" rel="nofollow">https://github.com/aparo/pyes/blob/master/pyes/es.py</a> (line 1304)</p>
  
  <p>But I can't figure out what exactly I'm supposed to do.
  Based on the previous links, I've tried this:</p>
  
  <pre><code>from pyes import *
  from pyes.query import *
  from pyes.es import ResultSet
  from pyes.connection import connect
  
  # Create connection to server.
  c = connect(servers=['127.0.0.1:9200'])
  
  # Create a filter to select documents with 'stuff' in the title.
  myFilter = TermFilter("title", "stuff")
  
  # Create query / Search object.
  q = FilteredQuery(MatchAllQuery(), myFilter).search()
  
  # (How to) create the model ?
  mymodel = lambda x, y: y
  
  # Execute the query.
  # class pyes.es.ResultSet(connection, search, indices=None, doc_types=None,
  # query_params=None, auto_fix_keys=False, auto_clean_highlight=False, model=None)
  
  resSet = ResultSet(connection=c, search=q, indices=['my-index'], model=mymodel)
  # &gt; resSet = ResultSet(connection=c, search=q, indices=['my-index'], model=mymodel)
  # &gt; TypeError: __init__() got an unexpected keyword argument 'search'
  </code></pre>
  
  <p>Anyone was able to get a dict from the ResultSet?
  Any good sugestion to efficiently convert the ResultSet to a (list of) dictionary will be appreciated too.</p>