Interface MatchPredicateFieldStep<N extends MatchPredicateFieldMoreStep<?,?>>


public interface MatchPredicateFieldStep<N extends MatchPredicateFieldMoreStep<?,?>>
The initial step in a "match" predicate definition, where the target field can be set.
  • Method Summary

    Modifier and Type
    Method
    Description
    default N
    field(String fieldPath)
    Target the given field in the match predicate.
    fields(String... fieldPaths)
    Target the given fields in the match predicate.
  • Method Details

    • field

      default N field(String fieldPath)
      Target the given field in the match predicate.

      Multiple fields may be targeted by the same predicate: the predicate will match if any targeted field matches.

      When targeting multiple fields, those fields must have compatible types. Please refer to the reference documentation for more information.

      Parameters:
      fieldPath - The path to the index field to apply the predicate on.
      Returns:
      The next step.
    • fields

      N fields(String... fieldPaths)
      Target the given fields in the match predicate.

      Equivalent to field(String) followed by multiple calls to MatchPredicateFieldMoreStep.field(String), the only difference being that calls to MultiFieldPredicateFieldBoostStep.boost(float) and other field-specific settings on the returned step will only need to be done once and will apply to all the fields passed to this method.

      Parameters:
      fieldPaths - The paths to the index fields to apply the predicate on.
      Returns:
      The next step.
      See Also: