All Superinterfaces:
Function<Query,Query>
All Known Implementing Classes:
CompressionQueryTransformer, RewriteQueryTransformer, TranslationQueryTransformer

public interface QueryTransformer extends Function<Query,Query>
A component for transforming the input query to make it more effective for retrieval tasks, addressing challenges such as poorly formed queries, ambiguous terms, complex vocabulary, or unsupported languages.
Since:
1.0.0
Author:
Thomas Vitale
  • Method Summary

    Modifier and Type
    Method
    Description
    default Query
    apply(Query query)
     
    Transforms the given query according to the implemented strategy.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • transform

      Query transform(Query query)
      Transforms the given query according to the implemented strategy.
      Parameters:
      query - The original query to transform
      Returns:
      The transformed query
    • apply

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