ClassicSimilarityAlgorithm Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SimilarityAlgorithm - com.
azure. search. documents. indexes. models. ClassicSimilarityAlgorithm
- com.
- com.
public final class ClassicSimilarityAlgorithm
extends SimilarityAlgorithm
Legacy similarity algorithm which uses the Lucene TFIDFSimilarity implementation of TF-IDF. This variation of TF-IDF introduces static document length normalization as well as coordinating factors that penalize documents that only partially match the searched queries.
Constructor Summary
| Constructor | Description |
|---|---|
| ClassicSimilarityAlgorithm() |
Creates an instance of Classic |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Classic |
fromJson(JsonReader jsonReader)
Reads an instance of Classic |
| String |
getOdataType()
Get the odata |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SimilarityAlgorithm
Methods inherited from java.lang.Object
Constructor Details
ClassicSimilarityAlgorithm
public ClassicSimilarityAlgorithm()
Creates an instance of ClassicSimilarityAlgorithm class.
Method Details
fromJson
public static ClassicSimilarityAlgorithm fromJson(JsonReader jsonReader)
Reads an instance of ClassicSimilarityAlgorithm from the JsonReader.
Parameters:
Returns:
Throws:
getOdataType
public String getOdataType()
Get the odataType property: The @odata.type property.
Overrides:
ClassicSimilarityAlgorithm.getOdataType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ClassicSimilarityAlgorithm.toJson(JsonWriter jsonWriter)Parameters:
Throws: