Interface QueryProcessor.Filter

Enclosing class:
QueryProcessor

public static interface QueryProcessor.Filter
Interface for query processing filters. Filters can modify, validate, or enhance queries before they are executed.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensearch.index.query.QueryBuilder
    execute(QueryContext context, org.apache.lucene.search.Query query, float boost, QueryProcessor.FilterChain chain)
    Executes the filter logic on the given query.
  • Method Details

    • execute

      org.opensearch.index.query.QueryBuilder execute(QueryContext context, org.apache.lucene.search.Query query, float boost, QueryProcessor.FilterChain chain)
      Executes the filter logic on the given query.
      Parameters:
      context - the query context containing search parameters and state
      query - the Lucene query to be processed
      boost - the boost factor to apply to the query
      chain - the next filter chain to execute after this filter
      Returns:
      the processed OpenSearch QueryBuilder