SimilarityAlgorithm Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SimilarityAlgorithm
- com.
Implements
public class SimilarityAlgorithm
implements JsonSerializable<SimilarityAlgorithm>
Base type for similarity algorithms. Similarity algorithms are used to calculate scores that tie queries to documents. The higher the score, the more relevant the document is to that specific query. Those scores are used to rank the search results.
Constructor Summary
Constructor | Description |
---|---|
SimilarityAlgorithm() |
Creates an instance of Similarity |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Similarity |
fromJson(JsonReader jsonReader)
Reads an instance of Similarity |
String |
getOdataType()
Get the odata |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SimilarityAlgorithm
public SimilarityAlgorithm()
Creates an instance of SimilarityAlgorithm class.
Method Details
fromJson
public static SimilarityAlgorithm fromJson(JsonReader jsonReader)
Reads an instance of SimilarityAlgorithm from the JsonReader.
Parameters:
Returns:
Throws:
getOdataType
public String getOdataType()
Get the odataType property: The @odata.type property.
Returns:
toJson
Applies to
Azure SDK for Java