Class TextWeights
java.lang.Object
com.azure.search.documents.indexes.models.TextWeights
Defines weights on index fields for which matches should boost scoring in search queries.
-
Constructor Summary
ConstructorsConstructorDescriptionTextWeights
(Map<String, Double> weights) Creates an instance of TextWeights class. -
Method Summary
Modifier and TypeMethodDescriptionGet the weights property: The dictionary of per-field weights to boost document scoring.
-
Constructor Details
-
TextWeights
Creates an instance of TextWeights class.- Parameters:
weights
- the weights value to set.
-
-
Method Details
-
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.
-