SearchPagedFlux Class
- java.
lang. Object - reactor.
core. publisher. Flux - com.
azure. core. util. paging. ContinuablePagedFlux<C,T,P> - com.
azure. core. util. paging. ContinuablePagedFluxCore<C,T,P> - com.
azure. core. http. rest. PagedFluxBase<T,P> - com.
azure. search. documents. util. SearchPagedFlux
- com.
- com.
- com.
- com.
- reactor.
public final class SearchPagedFlux
extends PagedFluxBase<SearchResult,SearchPagedResponse>
Implementation of ContinuablePagedFlux where the continuation token type is SearchRequest, the element type is SearchResult, and the page type is SearchPagedResponse.
Constructor Summary
Constructor | Description |
---|---|
SearchPagedFlux(Supplier<Mono<SearchPagedResponse>> firstPageRetriever) |
Creates an instance of SearchPagedFlux. |
SearchPagedFlux(Supplier<Mono<SearchPagedResponse>> firstPageRetriever, Function<String,Mono<SearchPagedResponse>> nextPageRetriever) |
Creates an instance of SearchPagedFlux. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<Double> |
getCoverage()
The percentage of the index covered in the search request. |
Mono<Map<String,List<Facet |
getFacets()
The facet query results based on the search request. |
Mono<Semantic |
getSemanticResults()
The semantic search results based on the search request. |
Mono<Long> |
getTotalCount()
The approximate number of documents that matched the search and filter parameters in the request. |
Methods inherited from PagedFluxBase
Methods inherited from ContinuablePagedFlux
Methods inherited from ContinuablePagedFluxCore
Methods inherited from java.lang.Object
Methods inherited from reactor.core.publisher.Flux
Constructor Details
SearchPagedFlux
public SearchPagedFlux(Supplier
Creates an instance of SearchPagedFlux.
Parameters:
SearchPagedFlux
public SearchPagedFlux(Supplier
Creates an instance of SearchPagedFlux.
Parameters:
Method Details
getCoverage
public Mono
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 Mono
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 Mono
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 Mono
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
.Applies to
Azure SDK for Java