Class QueryResultDocumentSubscores
java.lang.Object
com.azure.search.documents.models.QueryResultDocumentSubscores
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryResultDocumentSubscores>
public final class QueryResultDocumentSubscores
extends Object
implements com.azure.json.JsonSerializable<QueryResultDocumentSubscores>
The breakdown of subscores between the text and vector query components of the search query for this document. Each
vector query is shown as a separate object in the same order they were received.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of QueryResultDocumentSubscores class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryResultDocumentSubscoresfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QueryResultDocumentSubscores from the JsonReader.Get the documentBoost property: The BM25 or Classic score for the text portion of the query.getText()Get the text property: The BM25 or Classic score for the text portion of the query.Get the vectors property: The vector similarity and @search.score values for each vector query.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
QueryResultDocumentSubscores
public QueryResultDocumentSubscores()Creates an instance of QueryResultDocumentSubscores class.
-
-
Method Details
-
getText
Get the text property: The BM25 or Classic score for the text portion of the query.- Returns:
- the text value.
-
getVectors
Get the vectors property: The vector similarity and @search.score values for each vector query.- Returns:
- the vectors value.
-
getDocumentBoost
Get the documentBoost property: The BM25 or Classic score for the text portion of the query.- Returns:
- the documentBoost value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<QueryResultDocumentSubscores>- Throws:
IOException
-
fromJson
public static QueryResultDocumentSubscores fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of QueryResultDocumentSubscores from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of QueryResultDocumentSubscores if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the QueryResultDocumentSubscores.
-