public final class SearchPagedResponse extends Object implements com.azure.core.util.paging.ContinuablePage<SearchRequest,SearchResult>, com.azure.core.http.rest.Response<List<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.SimpleResponse<SearchDocumentsResult> documentSearchResponse)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SearchRequest |
getContinuationToken() |
Long |
getCount()
The approximate number of documents that matched the search and filter parameters in the request.
|
Double |
getCoverage()
The percentage of the index covered in the search request.
|
com.azure.core.util.IterableStream<SearchResult> |
getElements() |
Map<String,List<FacetResult>> |
getFacets()
The facet query results based on the search request.
|
com.azure.core.http.HttpHeaders |
getHeaders() |
com.azure.core.http.HttpRequest |
getRequest() |
int |
getStatusCode() |
List<SearchResult> |
getValue() |
public SearchPagedResponse(com.azure.core.http.rest.SimpleResponse<SearchDocumentsResult> documentSearchResponse)
documentSearchResponse - an http response with the resultspublic Double getCoverage()
If minimumCoverage wasn't supplied in the request this will be null.
minimumCoverage was set in the
request, otherwise null.public Map<String,List<FacetResult>> getFacets()
If facets weren't supplied in the request this will be null.
facets were supplied in the request, otherwise null.public Long getCount()
If count is set to false in the request this will be null.
count is true, otherwise
null.public int getStatusCode()
getStatusCode in interface com.azure.core.http.rest.Response<List<SearchResult>>public com.azure.core.http.HttpHeaders getHeaders()
getHeaders in interface com.azure.core.http.rest.Response<List<SearchResult>>public com.azure.core.http.HttpRequest getRequest()
getRequest in interface com.azure.core.http.rest.Response<List<SearchResult>>public List<SearchResult> getValue()
getValue in interface com.azure.core.http.rest.Response<List<SearchResult>>public com.azure.core.util.IterableStream<SearchResult> getElements()
getElements in interface com.azure.core.util.paging.ContinuablePage<SearchRequest,SearchResult>public SearchRequest getContinuationToken()
getContinuationToken in interface com.azure.core.util.paging.ContinuablePage<SearchRequest,SearchResult>Copyright © 2020 Microsoft Corporation. All rights reserved.