Interface IQueryExpander


public interface IQueryExpander
Query expanders are contributable componentes that are given the possibility to pre-process queries passed to the data service. Typical task is to expand query variables.
Author:
Jiri Banszel, POLARION SOFTWARE
  • Method Details

    • expandQuery

      String expandQuery(@NotNull String index, @Nullable String query)
      Returns expanded version of the query, or the input query if there is nothing to do for this expander.
      Parameters:
      index - name of the index, this is usually the name of the prototype
      query - may be null
    • sortResult

      List<SubterraURI> sortResult(String index, List<SubterraURI> uris, String sort)
      Sorts the result list of URIs according to sorting criteria.
      Parameters:
      index - name of the index, this is usually the name of the prototype
      uris - result of previous query, possibly not modifiable
      sort - sort string
      Returns:
      newly sorted result
      Since:
      3.5.1