QueryResultDocumentSubscores Class
- java.
lang. Object - com.
azure. search. documents. models. QueryResultDocumentSubscores
- com.
Implements
public final class QueryResultDocumentSubscores
implements 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
| Constructor | Description |
|---|---|
| QueryResultDocumentSubscores() |
Creates an instance of Query |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Query |
fromJson(JsonReader jsonReader)
Reads an instance of Query |
| Double |
getDocumentBoost()
Get the document |
|
Text |
getText()
Get the text property: The BM25 or Classic score for the text portion of the query. |
|
List<Map<String,Single |
getVectors()
Get the vectors property: The vector similarity and @search. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
QueryResultDocumentSubscores
public QueryResultDocumentSubscores()
Creates an instance of QueryResultDocumentSubscores class.
Method Details
fromJson
public static QueryResultDocumentSubscores fromJson(JsonReader jsonReader)
Reads an instance of QueryResultDocumentSubscores from the JsonReader.
Parameters:
Returns:
Throws:
getDocumentBoost
public Double getDocumentBoost()
Get the documentBoost property: The BM25 or Classic score for the text portion of the query.
Returns:
getText
public TextResult getText()
Get the text property: The BM25 or Classic score for the text portion of the query.
Returns:
getVectors
public List<Map<String,SingleVectorFieldResult>> getVectors()
Get the vectors property: The vector similarity and @search.score values for each vector query.
Returns: