Class QueryRewritesValuesDebugInfo

java.lang.Object
com.azure.search.documents.models.QueryRewritesValuesDebugInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryRewritesValuesDebugInfo>

public final class QueryRewritesValuesDebugInfo extends Object implements com.azure.json.JsonSerializable<QueryRewritesValuesDebugInfo>
Contains debugging information specific to query rewrites.
  • Constructor Details

    • QueryRewritesValuesDebugInfo

      public QueryRewritesValuesDebugInfo()
      Creates an instance of QueryRewritesValuesDebugInfo class.
  • Method Details

    • getInputQuery

      public String getInputQuery()
      Get the inputQuery property: The input text to the generative query rewriting model. There may be cases where the user query and the input to the generative model are not identical.
      Returns:
      the inputQuery value.
    • getRewrites

      public List<String> getRewrites()
      Get the rewrites property: List of query rewrites.
      Returns:
      the rewrites value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<QueryRewritesValuesDebugInfo>
      Throws:
      IOException
    • fromJson

      public static QueryRewritesValuesDebugInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of QueryRewritesValuesDebugInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of QueryRewritesValuesDebugInfo 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 QueryRewritesValuesDebugInfo.