FreshnessScoringParameters Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. FreshnessScoringParameters
- com.
Implements
public final class FreshnessScoringParameters
implements JsonSerializable<FreshnessScoringParameters>
Provides parameter values to a freshness scoring function.
Constructor Summary
| Constructor | Description |
|---|---|
| FreshnessScoringParameters(Duration boostingDuration) |
Creates an instance of Freshness |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Freshness |
fromJson(JsonReader jsonReader)
Reads an instance of Freshness |
| Duration |
getBoostingDuration()
Get the boosting |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
FreshnessScoringParameters
public FreshnessScoringParameters(Duration boostingDuration)
Creates an instance of FreshnessScoringParameters class.
Parameters:
Method Details
fromJson
public static FreshnessScoringParameters fromJson(JsonReader jsonReader)
Reads an instance of FreshnessScoringParameters from the JsonReader.
Parameters:
Returns:
Throws:
getBoostingDuration
public Duration getBoostingDuration()
Get the boostingDuration property: The expiration period after which boosting will stop for a particular document.
Returns: