Package | Description |
---|---|
com.couchbase.client.java | |
com.couchbase.client.java.search | |
com.couchbase.client.java.util.rawQuerying |
Modifier and Type | Method and Description |
---|---|
SearchQueryResult |
CouchbaseBucket.query(SearchQuery query) |
rx.Observable<AsyncSearchQueryResult> |
CouchbaseAsyncBucket.query(SearchQuery query) |
SearchQueryResult |
Bucket.query(SearchQuery query)
Experimental: Queries a Full-Text Index
|
rx.Observable<AsyncSearchQueryResult> |
AsyncBucket.query(SearchQuery query)
Experimental: Queries a Full-Text Index
|
SearchQueryResult |
CouchbaseBucket.query(SearchQuery query,
long timeout,
TimeUnit timeUnit) |
SearchQueryResult |
Bucket.query(SearchQuery query,
long timeout,
TimeUnit timeUnit)
Experimental: Queries a Full-Text Index
|
Modifier and Type | Method and Description |
---|---|
SearchQuery |
SearchQuery.addFacet(String facetName,
SearchFacet facet)
Adds one
SearchFacet to the query. |
SearchQuery |
SearchQuery.clearFacets()
Clears all previously added
SearchFacet . |
SearchQuery |
SearchQuery.clearHighlight()
Clears any previously configured highlighting.
|
SearchQuery |
SearchQuery.consistentWith(Document... docs)
Sets the consistency to consider for this FTS query to AT_PLUS and uses the mutation information from the given documents to parameterize the consistency.
|
SearchQuery |
SearchQuery.consistentWith(DocumentFragment... fragments)
Sets the consistency to consider for this FTS query to AT_PLUS and uses the mutation information from the given document fragments to parameterize the consistency.
|
SearchQuery |
SearchQuery.consistentWith(MutationState mutationState)
Sets the consistency to consider for this FTS query to AT_PLUS and uses the
MutationState directly to parameterize the consistency. |
SearchQuery |
SearchQuery.explain()
Activates the explanation of each result hit in the response.
|
SearchQuery |
SearchQuery.explain(boolean explain)
Activates or deactivates the explanation of each result hit in the response, according to the parameter.
|
SearchQuery |
SearchQuery.fields(String... fields)
Configures the list of fields for which the whole value should be included in the response.
|
SearchQuery |
SearchQuery.highlight()
Configures the highlighting of matches in the response for all fields, using the server’s default highlighting style.
|
SearchQuery |
SearchQuery.highlight(HighlightStyle style,
String... fields)
Configures the highlighting of matches in the response.
|
SearchQuery |
SearchQuery.highlight(String... fields)
Configures the highlighting of matches in the response, for the specified fields and using the server’s default highlighting style.
|
SearchQuery |
SearchQuery.limit(int limit)
Add a limit to the query on the number of hits it can return.
|
SearchQuery |
SearchQuery.searchConsistency(SearchConsistency consistency)
Sets the unparameterized consistency to consider for this FTS query.
|
SearchQuery |
SearchQuery.serverSideTimeout(long timeout,
TimeUnit unit)
Sets the server side timeout.
|
SearchQuery |
SearchQuery.skip(int skip)
Set the number of hits to skip (eg.
|
SearchQuery |
SearchQuery.sort(Object... sort)
Configures the list of fields (including special fields) which are used for sorting purposes.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
RawQueryExecutor.ftsToJsonObject(SearchQuery query)
Synchronously perform a
SearchQuery and return the raw N1QL response as a JsonObject . |
rx.Observable<JsonObject> |
AsyncRawQueryExecutor.ftsToJsonObject(SearchQuery query)
Asynchronously perform a
SearchQuery and return the raw N1QL response as a JsonObject . |
<T> T |
RawQueryExecutor.ftsToRawCustom(SearchQuery query,
rx.functions.Func1<String,T> deserializer)
Synchronously perform a
SearchQuery and apply a user function to deserialize the raw JSON FTS response, which is represented as a String . |
<T> rx.Observable<T> |
AsyncRawQueryExecutor.ftsToRawCustom(SearchQuery query,
rx.functions.Func1<String,T> deserializer)
Asynchronously perform a
SearchQuery and apply a user function to deserialize the raw JSON FTS response, which is represented as a String . |
String |
RawQueryExecutor.ftsToRawJson(SearchQuery query)
Synchronously perform a
SearchQuery and return the raw N1QL response as a String. |
rx.Observable<String> |
AsyncRawQueryExecutor.ftsToRawJson(SearchQuery query)
Asynchronously perform a
SearchQuery and return the raw N1QL response as a String. |
Copyright © 2015 Couchbase, Inc.