code: def search(self):
          
          s = Search(doc_type=self.doc_types, index=self.index, using=self.using)
          return s.response_class(FacetedResponse)
docs: Returns the base Search object to which the facets are added.
  
          You can customize the query by overriding this method and returning a
          modified search object.