docs: def search(cls,
                 query_string,
                 options=None,
                 enable_facet_discovery=False,
                 return_facets=None,
                 facet_options=None,
                 facet_refinements=None,
                 deadline=None,
                 **kwargs):
          """
          Searches the index. Conveniently searches only for documents that belong to instances of this class.
  
          :param query_string: The query to match against documents in the index. See search.Query() for details.
          :param options: A QueryOptions describing post-processing of search results.
          :param enable_facet_discovery: discovery top relevent facets to this search query and return them.
          :param return_facets: An iterable of FacetRequest or basestring as facet name to
                  return specific facet with the result.
          :param facet_options: A FacetOption describing processing of facets.
          :param facet_refinements: An iterable of FacetRefinement objects or refinement
                          token strings used to filter out search results based on a facet value.
                          refinements for different facets will be conjunction and refinements for
                          the same facet will be disjunction.
          :param deadline: Deadline for RPC call in seconds; if None use the default.
          :param kwargs: A SearchResults containing a list of documents matched, number returned
                and number matched by the query.
          :return: A SearchResults containing a list of documents matched, number returned
                and number matched by the query.
          :raises: QueryError: If the query string is not parseable.
                TypeError: If any of the parameters have invalid types, or an unknown
                  attribute is passed.
                ValueError: If any of the parameters have invalid values (e.g., a
                  negative deadline).
          """
          search_class = cls.search_get_class_names()[-1]
          query_string += ' ' + 'class_name:%s' % (search_class,)
  
          q = search.Query(
              query_string=query_string,
              options=options,
              enable_facet_discovery=enable_facet_discovery,
              return_facets=return_facets,
              facet_options=facet_options,
              facet_refinements=facet_refinements
              )
          index = cls.search_get_index()
          return index.search(q, deadline=deadline, **kwargs)