Class TextWeights

java.lang.Object
com.azure.search.documents.indexes.models.TextWeights

public final class TextWeights extends Object
Defines weights on index fields for which matches should boost scoring in search queries.
  • Constructor Details

    • TextWeights

      public TextWeights(Map<String,Double> weights)
      Creates an instance of TextWeights class.
      Parameters:
      weights - the weights value to set.
  • Method Details

    • getWeights

      public Map<String,Double> getWeights()
      Get the weights property: The dictionary of per-field weights to boost document scoring. The keys are field names and the values are the weights for each field.
      Returns:
      the weights value.