Interface QueryCommand.DefaultQueryBuilderFunction

Enclosing class:
QueryCommand

protected static interface QueryCommand.DefaultQueryBuilderFunction
Functional interface for building query builders with field and boost parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensearch.index.query.QueryBuilder
    apply(String field, float boost)
    Applies the function to create a query builder for the specified field and boost.
  • Method Details

    • apply

      org.opensearch.index.query.QueryBuilder apply(String field, float boost)
      Applies the function to create a query builder for the specified field and boost.
      Parameters:
      field - The field name.
      boost - The boost value.
      Returns:
      The created query builder.