public final class SearchPagedIterable extends com.azure.core.http.rest.PagedIterableBase<SearchResult,SearchPagedResponse>
ContinuablePagedIterable
where the continuation token type is SearchRequest
, the
element type is SearchResult
, and the page type is SearchPagedResponse
.Constructor and Description |
---|
SearchPagedIterable(SearchPagedFlux pagedFlux)
Creates an instance of
SearchPagedIterable . |
Modifier and Type | Method and Description |
---|---|
List<AnswerResult> |
getAnswers()
The answer results based on the search request.
|
Double |
getCoverage()
The percentage of the index covered in the search request.
|
Map<String,List<FacetResult>> |
getFacets()
The facet query results based on the search request.
|
Long |
getTotalCount()
The approximate number of documents that matched the search and filter parameters in the request.
|
iterableByPage, iterableByPage, iterableByPage, iterableByPage, iterator, stream, streamByPage, streamByPage, streamByPage, streamByPage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SearchPagedIterable(SearchPagedFlux pagedFlux)
SearchPagedIterable
.pagedFlux
- The SearchPagedFlux
that will be consumed as an iterable.public 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 getTotalCount()
If count
is set to false
in the request this will be null
.
count
is true
, otherwise
null
.public List<AnswerResult> getAnswers()
If answers
wasn't supplied in the request this will be null.
answers
were supplied in the request, otherwise null.Copyright © 2021 Microsoft Corporation. All rights reserved.