def search(self):
        """
        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.
        """
        s = Search(doc_type=self.doc_types, index=self.index, using=self.using)
        return s.response_class(FacetedResponse)
def search ( self ) : s = Search ( doc_type = self . doc_types , index = self . index , using = self . using ) return s . response_class ( FacetedResponse )
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.