你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SearchPagedIterable Class
- java.
lang. Object - com.
azure. core. util. IterableStream<T> - com.
azure. core. util. paging. ContinuablePagedIterable<C,T,P> - com.
azure. core. http. rest. PagedIterableBase<T,P> - com.
azure. search. documents. util. SearchPagedIterable
- com.
- com.
- com.
- com.
public final class SearchPagedIterable
extends PagedIterableBase<SearchResult,SearchPagedResponse>
Implementation of ContinuablePagedIterable where the continuation token type is SearchRequest, the element type is SearchResult, and the page type is SearchPagedResponse.
Constructor Summary
Constructor | Description |
---|---|
SearchPagedIterable(SearchPagedFlux pagedFlux) |
Creates an instance of SearchPagedIterable. |
SearchPagedIterable(Supplier<SearchPagedResponse> firstPageRetriever) |
Creates an instance of SearchPagedIterable. |
SearchPagedIterable(Supplier<SearchPagedResponse> firstPageRetriever, Function<String,SearchPagedResponse> nextPageRetriever) |
Creates an instance of SearchPagedIterable. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Double |
getCoverage()
The percentage of the index covered in the search request. |
Map<String,List<Facet |
getFacets()
The facet query results based on the search request. |
Semantic |
getSemanticResults()
The semantic search results based on the search request. |
Long |
getTotalCount()
The approximate number of documents that matched the search and filter parameters in the request. |
Methods inherited from IterableStream
Methods inherited from ContinuablePagedIterable
Methods inherited from java.lang.Object
Constructor Details
SearchPagedIterable
public SearchPagedIterable(SearchPagedFlux pagedFlux)
Creates an instance of SearchPagedIterable.
Parameters:
SearchPagedIterable
public SearchPagedIterable(Supplier
Creates an instance of SearchPagedIterable. The constructor takes a Supplier
. The Supplier
returns the first page of SearchPagedResponse
.
Parameters:
SearchPagedIterable
public SearchPagedIterable(Supplier
Creates an instance of SearchPagedIterable. The constructor takes a Supplier
and Function
. The Supplier
returns the first page of SearchPagedResponse
, the Function
retrieves subsequent pages of SearchPagedResponse
.
Parameters:
Method Details
getCoverage
public Double getCoverage()
The percentage of the index covered in the search request.
If minimumCoverage
wasn't supplied in the request this will be null
.
Returns:
minimumCoverage
was set in the
request, otherwise null
.getFacets
public Map
The facet query results based on the search request.
If facets
weren't supplied in the request this will be null
.
Returns:
facets
were supplied in the request, otherwise null
.getSemanticResults
public SemanticSearchResults getSemanticResults()
The semantic search results based on the search request.
If semantic search wasn't requested this will return a SemanticSearchResults with no values.
Returns:
getTotalCount
public Long getTotalCount()
The approximate number of documents that matched the search and filter parameters in the request.
If count
is set to false
in the request this will be null
.
Returns:
count
is true
, otherwise
null
.