Interface MinimumShouldMatchRequireStep<N>

Type Parameters:
N - The type of the next step (returned by MinimumShouldMatchMoreStep.end()).

public interface MinimumShouldMatchRequireStep<N>
The step in a "minimum should match" constraint definition where the minimum required number or percentage of should clauses to match can be set.

See "minimumShouldMatch" constraints.

  • Method Details

    • thenRequireNumber

      MinimumShouldMatchMoreStep<N> thenRequireNumber(int matchingClausesNumber)
      Parameters:
      matchingClausesNumber - A definition of the number of "should" clauses that have to match. If positive, it is the number of clauses that have to match. See Definition of the minimum for details and possible values, in particular negative values.
      Returns:
      The next step.
    • thenRequirePercent

      MinimumShouldMatchMoreStep<N> thenRequirePercent(int matchingClausesPercent)
      Parameters:
      matchingClausesPercent - A definition of the number of "should" clauses that have to match, as a percentage. If positive, it is the percentage of the total number of "should" clauses that have to match. See Definition of the minimum for details and possible values, in particular negative values.
      Returns:
      The next step.