Class SemanticSearchResults

java.lang.Object
com.azure.search.documents.models.SemanticSearchResults

public final class SemanticSearchResults extends Object
The page-level results for a semantic search.
  • Method Details

    • getQueryAnswers

      public List<QueryAnswerResult> getQueryAnswers()
      The answer results based on the search request.

      If answers wasn't supplied in the request this will be null.

      Returns:
      The answer results if answers were supplied in the request, otherwise null.
    • getErrorReason

      public SemanticErrorReason getErrorReason()
      The reason for a partial result returned by Azure AI Search.
      Returns:
      The reason for a partial result returned by Azure AI Search.
    • getResultsType

      public SemanticSearchResultsType getResultsType()
      The type of the partial result returned by Azure AI Search.
      Returns:
      The type of the partial result returned by Azure AI Search.
    • getSemanticQueryRewritesResultType

      public SemanticQueryRewritesResultType getSemanticQueryRewritesResultType()
      Type of query rewrite that was used for this request.
      Returns:
      The type of query rewrite that was used for this request.