parameters: (self)
return_statement: return search_query_set
docstring: Search index based off query.
  
          This method overrides the default ModelSearchForm search method to
          modify the default result if a blank query string is given. The form
          returns all items instead of zero items any parameter is given.
  
          The original search method checks if the form is valid, however
          with all fields being optional with no validation, the form is always
          valid. Therefore logic for an invalid form is removed.
  
          Returns:
              SearchQuerySet of search results.
docstring_summary: Search index based off query.
docstring_tokens: Search index based off query .
function: def search(self):
          """Search index based off query.
  
          This method overrides the default ModelSearchForm search method to
          modify the default result if a blank query string is given. The form
          returns all items instead of zero items any parameter is given.
  
          The original search method checks if the form is valid, however
          with all fields being optional with no validation, the form is always
          valid. Therefore logic for an invalid form is removed.
  
          Returns:
              SearchQuerySet of search results.
          """
          if not self.cleaned_data.get("q") and not self.cleaned_data.get("models"):
              return self.no_query_found()
          else:
              search_query_set = all_items(self.searchqueryset)
          search_query_set = search_query_set.auto_query(self.cleaned_data['q']).models(*self.get_models())
          return search_query_set
function_tokens: def search ( self ) : if not self . cleaned_data . get ( "q" ) and not self . cleaned_data . get ( "models" ) : return self . no_query_found ( ) else : search_query_set = all_items ( self . searchqueryset ) search_query_set = search_query_set . auto_query ( self . cleaned_data [ 'q' ] ) . models ( * self . get_models ( ) ) return search_query_set