public final class SearchPagedResponse extends com.azure.core.http.rest.PagedResponseBase<Void,SearchResult>
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 and Description |
---|
SearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response,
String continuationToken,
Map<String,List<FacetResult>> facets,
Long count,
Double coverage)
Constructor
|
SearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response,
String continuationToken,
Map<String,List<FacetResult>> facets,
Long count,
Double coverage,
List<AnswerResult> answers)
Constructor
|
Modifier and Type | Method and Description |
---|---|
List<SearchResult> |
getValue() |
close, getContinuationToken, getDeserializedHeaders, getElements, getHeaders, getRequest, getStatusCode
public SearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String,List<FacetResult>> facets, Long count, Double coverage)
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.public SearchPagedResponse(com.azure.core.http.rest.Response<List<SearchResult>> response, String continuationToken, Map<String,List<FacetResult>> facets, Long count, Double coverage, List<AnswerResult> answers)
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.answers
- Answers contained in the search.public List<SearchResult> getValue()
Copyright © 2021 Microsoft Corporation. All rights reserved.