TextWeights Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. TextWeights
- com.
Implements
public final class TextWeights
implements JsonSerializable<TextWeights>
Defines weights on index fields for which matches should boost scoring in search queries.
Constructor Summary
Constructor | Description |
---|---|
TextWeights(Map<String,Double> weights) |
Creates an instance of Text |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Text |
fromJson(JsonReader jsonReader)
Reads an instance of Text |
Map<String,Double> |
getWeights()
Get the weights property: The dictionary of per-field weights to boost document scoring. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
TextWeights
public TextWeights(Map
Creates an instance of TextWeights class.
Parameters:
Method Details
fromJson
public static TextWeights fromJson(JsonReader jsonReader)
Reads an instance of TextWeights from the JsonReader.
Parameters:
Returns:
Throws:
getWeights
public Map
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: