Package com.azure.search.documents.util
Class SearchPagedResponse
java.lang.Object
com.azure.core.http.rest.PagedResponseBase<Void,SearchResult>
com.azure.search.documents.util.SearchPagedResponse
- All Implemented Interfaces:
com.azure.core.http.rest.Page<SearchResult>,com.azure.core.http.rest.PagedResponse<SearchResult>,com.azure.core.http.rest.Response<List<SearchResult>>,com.azure.core.util.paging.ContinuablePage<String,,SearchResult> Closeable,AutoCloseable
public final class SearchPagedResponse
extends com.azure.core.http.rest.PagedResponseBase<Void,SearchResult>
Represents an HTTP response from the search API request that contains a list of items deserialized into a
Page. Each page contains additional information returned by the API request. In the Search API case the additional
information is: count - number of total documents returned. Will be returned only if isIncludeTotalResultCount is set
to true coverage - coverage value.-
Constructor Summary
ConstructorsConstructorDescriptionSearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String, List<FacetResult>> facets, Long count, Double coverage) ConstructorSearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String, List<FacetResult>> facets, Long count, Double coverage, List<QueryAnswerResult> queryAnswers, SemanticErrorReason semanticErrorReason, SemanticSearchResultsType semanticSearchResultsType) ConstructorSearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String, List<FacetResult>> facets, Long count, Double coverage, List<QueryAnswerResult> queryAnswers, SemanticErrorReason semanticErrorReason, SemanticSearchResultsType semanticSearchResultsType, DebugInfo debugInfo, SemanticQueryRewritesResultType semanticQueryRewritesResultType) Constructor -
Method Summary
Methods inherited from class com.azure.core.http.rest.PagedResponseBase
close, getContinuationToken, getDeserializedHeaders, getElements, getHeaders, getRequest, getStatusCodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.core.http.rest.Page
getItems
-
Constructor Details
-
SearchPagedResponse
public SearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String, List<FacetResult>> facets, Long count, Double coverage) Constructor- Parameters:
response- The response containing information such as the request, status code, headers, and values.continuationToken- Continuation token for the next operation.facets- Facets contained in the search.count- Total number of documents available as a result for the search.coverage- Percent of the index used in the search operation.
-
SearchPagedResponse
public SearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String, List<FacetResult>> facets, Long count, Double coverage, List<QueryAnswerResult> queryAnswers, SemanticErrorReason semanticErrorReason, SemanticSearchResultsType semanticSearchResultsType) Constructor- Parameters:
response- The response containing information such as the request, status code, headers, and values.continuationToken- Continuation token for the next operation.facets- Facets contained in the search.count- Total number of documents available as a result for the search.coverage- Percent of the index used in the search operation.queryAnswers- Answers contained in the search.semanticErrorReason- Reason that a partial response was returned for a semantic search request.semanticSearchResultsType- Type of the partial response returned for a semantic search request.
-
SearchPagedResponse
public SearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String, List<FacetResult>> facets, Long count, Double coverage, List<QueryAnswerResult> queryAnswers, SemanticErrorReason semanticErrorReason, SemanticSearchResultsType semanticSearchResultsType, DebugInfo debugInfo, SemanticQueryRewritesResultType semanticQueryRewritesResultType) Constructor- Parameters:
response- The response containing information such as the request, status code, headers, and values.continuationToken- Continuation token for the next operation.facets- Facets contained in the search.count- Total number of documents available as a result for the search.coverage- Percent of the index used in the search operation.queryAnswers- Answers contained in the search.semanticErrorReason- Reason that a partial response was returned for a semantic search request.semanticSearchResultsType- Type of the partial response returned for a semantic search request.debugInfo- Debug information that applies to the search results as a whole.semanticQueryRewritesResultType- Type of the partial response returned for a semantic query rewrites request.
-
-
Method Details
-
getValue
-