@InterfaceStability.Experimental @InterfaceAudience.Public public interface AsyncSearchQueryResult
The asynchronous interface for FTS query results.
Modifier and Type | Method and Description |
---|---|
Observable<FacetResult> |
facets()
An
Observable emitting a FacetResult for each requested facet in the original request. |
Observable<SearchQueryRow> |
hits()
An
Observable of rows (or hits) describing each individual result. |
Observable<SearchMetrics> |
metrics()
An
Observable asynchronously providing statistics about the request in the form of a single SearchMetrics . |
SearchStatus |
status()
The
SearchStatus allows to check if the request was a full success (SearchStatus.isSuccess() ) and gives more details about status for each queried index. |
SearchStatus status()
The SearchStatus
allows to check if the request was a full success (SearchStatus.isSuccess()
) and gives more details about status for each queried index.
Observable<SearchQueryRow> hits()
An Observable
of rows
(or hits) describing each individual result. Note that in case of a partial success, Observer.onError(Throwable)
will be called after each partial result has been emitted. In case of a full execution failure, no hit is emitted before the onError.
The following execution-level exceptions can happen:
RuntimeException
, and all are aggregated into a single CompositeException
.CouchbaseException
.Observable<FacetResult> facets()
An Observable
emitting a FacetResult
for each requested facet in the original request.
Observable<SearchMetrics> metrics()
An Observable
asynchronously providing statistics about the request in the form of a single SearchMetrics
. Note that the metrics are emitted after all hits have been received.
Copyright © 2015 Couchbase, Inc.