Class QueryRewritesDebugInfo
java.lang.Object
com.azure.search.documents.models.QueryRewritesDebugInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryRewritesDebugInfo>
public final class QueryRewritesDebugInfo
extends Object
implements com.azure.json.JsonSerializable<QueryRewritesDebugInfo>
Contains debugging information specific to query rewrites.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of QueryRewritesDebugInfo class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryRewritesDebugInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QueryRewritesDebugInfo from the JsonReader.getText()Get the text property: List of query rewrites generated for the text query.Get the vectors property: List of query rewrites generated for the vectorizable text queries.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
-
QueryRewritesDebugInfo
public QueryRewritesDebugInfo()Creates an instance of QueryRewritesDebugInfo class.
-
-
Method Details
-
getText
Get the text property: List of query rewrites generated for the text query.- Returns:
- the text value.
-
getVectors
Get the vectors property: List of query rewrites generated for the vectorizable text queries.- Returns:
- the vectors value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<QueryRewritesDebugInfo>- Throws:
IOException
-
fromJson
public static QueryRewritesDebugInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of QueryRewritesDebugInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of QueryRewritesDebugInfo 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 QueryRewritesDebugInfo.
-