Interface PredicateScoreStep<S>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      S boost​(float boost)
      Boost the weight of the predicate in score computation.
      S constantScore()
      Force the score of the predicate to a single constant, identical for all documents.
    • Method Detail

      • boost

        S boost​(float boost)
        Boost the weight of the predicate in score computation.
        Parameters:
        boost - The boost factor. Higher than 1 increases the weight in score computation, between 0 and 1 lowers the weight. Lower than 0 is for experts only.
        Returns:
        this, for method chaining.
      • constantScore

        S constantScore()
        Force the score of the predicate to a single constant, identical for all documents.

        By default, the score will be 1.0f, but boosts, if any, will still be applied to the predicate.

        Returns:
        this, for method chaining.