title: Django Haystack Results to Django Rest Framework Serializer
body: <p>I am attempting to do a search using Django Haystack and then upon retrieving results I need to pass these results to my Django Rest Framework serializer.</p>
  
  <p>The Django Rest Framework serializers.ModelSerializer requires that a queryset of objects gets sent for the serializer to be able to serialize these objects along with their database fields.</p>
  
  <p>When I create my API view and use search to get results haystack returns a searchqueryset.</p>
  
  <p>How could I get this searchqueryset into a django queryset without doing something like:</p>
  
  <pre><code>article_queryset = Article.objects.filter(id__in=[i.object for i in searchqueryset])
  </code></pre>
  
  <p>As you could imagine, sometimes search can return excess of 1000 search results which means that the above would be very inefficient.</p>
  
  <p>Right now the Django rest framework allows me to paginate my returned objects. I am paginating by 30 objects on each page. How would it be possible for me to do the same with my Haystack searchqueryset?</p>
  
  <p>Any advice or ideas on how to use Haystack along with Django Rest Framework would be great. Examples of how others have done a similar thing would be cool too :)</p>