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 | Description |
---|---|
Freshness |
Creates an instance of Freshness |
Modifier and Type | Method and Description |
---|---|
static
Freshness |
from Reads an instance of Freshness |
Duration |
get Get the boosting |
Json |
to |
Methods inherited from java.lang.Object
FreshnessScoringParameters
public FreshnessScoringParameters(Duration boostingDuration)
Creates an instance of FreshnessScoringParameters class.
Parameters:
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:
toJson
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: