SimilarityAlgorithm Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SimilarityAlgorithm
- com.
Implements
public abstract 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 |
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:
toJson
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for