All Superinterfaces:
Function<Query,List<Query>>
All Known Implementing Classes:
MultiQueryExpander

public interface QueryExpander extends Function<Query,List<Query>>
A component for expanding the input query into a list of queries, addressing challenges such as poorly formed queries by providing alternative query formulations, or by breaking down complex problems into simpler sub-queries.
Since:
1.0.0
Author:
Thomas Vitale
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<Query>
    apply(Query query)
     
    expand(Query query)
    Expands the given query into a list of queries.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • expand

      List<Query> expand(Query query)
      Expands the given query into a list of queries.
      Parameters:
      query - The original query to be expanded
      Returns:
      A list of expanded queries
    • apply

      default List<Query> apply(Query query)
      Specified by:
      apply in interface Function<Query,List<Query>>