Udostępnij przez


TextResult Class

  • java.lang.Object
    • com.azure.search.documents.models.TextResult

Implements

public final class TextResult
implements JsonSerializable<TextResult>

The BM25 or Classic score for the text portion of the query.

Constructor Summary

Constructor Description
TextResult()

Creates an instance of TextResult class.

Method Summary

Modifier and Type Method and Description
static TextResult fromJson(JsonReader jsonReader)

Reads an instance of TextResult from the JsonReader.

Double getSearchScore()

Get the searchScore property: The BM25 or Classic score for the text portion of the query.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TextResult

public TextResult()

Creates an instance of TextResult class.

Method Details

fromJson

public static TextResult fromJson(JsonReader jsonReader)

Reads an instance of TextResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TextResult 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 TextResult.

getSearchScore

public Double getSearchScore()

Get the searchScore property: The BM25 or Classic score for the text portion of the query.

Returns:

the searchScore value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to