Package com.couchbase.client.java.search
Class SearchRequest
java.lang.Object
com.couchbase.client.java.search.SearchRequest
A SearchRequest is used to perform operations against the Full Text Search (FTS) Couchbase service.
It can be used to send an FTS SearchQuery
, and/or a VectorSearch
.
If both are provided, the FTS service will merge the results.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchRequest
create
(SearchQuery searchQuery) Will run an FTSSearchQuery
.static SearchRequest
create
(VectorSearch vectorSearch) Will run aVectorSearch
.searchQuery
(SearchQuery searchQuery) Can be used to run aSearchQuery
together with an existingVectorSearch
.toCore()
vectorSearch
(VectorSearch vectorSearch) Can be used to run aVectorSearch
together with an existingSearchQuery
.
-
Method Details
-
create
Will run aVectorSearch
. -
create
Will run an FTSSearchQuery
. -
searchQuery
Can be used to run aSearchQuery
together with an existingVectorSearch
.Note that a maximum of one SearchQuery and one VectorSearch can be provided.
- Returns:
- this, for chaining purposes.
-
vectorSearch
Can be used to run aVectorSearch
together with an existingSearchQuery
.Note that a maximum of one SearchQuery and one VectorSearch can be provided.
- Returns:
- this, for chaining purposes.
-
toCore
-