@InterfaceStability.Committed @InterfaceAudience.Public public interface AsyncSearchQueryResult
Modifier and Type | Method and Description |
---|---|
rx.Observable<FacetResult> |
facets()
An
Observable emitting a FacetResult for each requested facet in the original request. |
rx.Observable<SearchQueryRow> |
hits()
An
Observable of rows (or hits) describing each individual result. |
rx.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()
SearchStatus
allows to check if the request was a full success (SearchStatus.isSuccess()
)
and gives more details about status for each queried index.rx.Observable<SearchQueryRow> hits()
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:
- if there is one or more execution-level errors, each of them is represented as a RuntimeException
,
and all are aggregated into a single CompositeException
.
- if the request is malformed, the server side error message is returned as the message of a CouchbaseException
.rx.Observable<FacetResult> facets()
Observable
emitting a FacetResult
for each requested facet in the original request.rx.Observable<SearchMetrics> metrics()
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.