def METHOD_NAME(self):
    self.search_manager = self.get_search_manager()
    s = self.get_base_search()
    self.has_query = self.request.GET.get("q")
    if not self.has_query:
        s = s.sort(self.default_sort)
    else:
        s = s.highlight_options(encoder="html").highlight("content")
        s = s.sort("_score")
    return s