Class TagScoringFunction

java.lang.Object
com.azure.search.documents.indexes.models.ScoringFunction
com.azure.search.documents.indexes.models.TagScoringFunction

public final class TagScoringFunction extends ScoringFunction
Defines a function that boosts scores of documents with string values matching a given list of tags.
  • Constructor Details

    • TagScoringFunction

      public TagScoringFunction(String fieldName, double boost, TagScoringParameters parameters)
      Creates an instance of TagScoringFunction class.
      Parameters:
      fieldName - the fieldName value to set.
      boost - the boost value to set.
      parameters - the parameters value to set.
  • Method Details

    • getParameters

      public TagScoringParameters getParameters()
      Get the parameters property: Parameter values for the tag scoring function.
      Returns:
      the parameters value.
    • setInterpolation

      public TagScoringFunction setInterpolation(ScoringFunctionInterpolation interpolation)
      Set the interpolation property: A value indicating how boosting will be interpolated across document scores; defaults to "Linear".
      Overrides:
      setInterpolation in class ScoringFunction
      Parameters:
      interpolation - the interpolation value to set.
      Returns:
      the ScoringFunction object itself.