code: public Deferred<SearchQuery> executeSearch(final SearchQuery query) {
      if (search == null) {
        throw new IllegalStateException(
            "Searching has not been enabled on this TSD");
      }
  
      return search.executeQuery(query);
    }
docs: Executes a search query using the search plugin
  @param query The query to execute
  @return A deferred object to wait on for the results to be fetched
  @throws IllegalStateException if the search plugin has not been enabled or
  configured
  @since 2.0