Package com.couchbase.client.java.search
Class SearchQuery
java.lang.Object
com.couchbase.client.java.search.SearchQuery
- Direct Known Subclasses:
AbstractCompoundQuery
,BooleanFieldQuery
,BooleanQuery
,DateRangeQuery
,DocIdQuery
,GeoBoundingBoxQuery
,GeoDistanceQuery
,GeoPolygonQuery
,MatchAllQuery
,MatchNoneQuery
,MatchPhraseQuery
,MatchQuery
,NumericRangeQuery
,PhraseQuery
,PrefixQuery
,QueryStringQuery
,RegexpQuery
,TermQuery
,TermRangeQuery
,WildcardQuery
A base class for all FTS query classes. Exposes the common FTS query parameters.
In order to instantiate various flavors of queries, look at concrete classes or
static factory methods in
SearchQuery
.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanFieldQuery
booleanField
(boolean value) Prepare aBooleanFieldQuery
body.static BooleanQuery
booleans()
Prepare aBooleanQuery
body.boost
(double boost) static ConjunctionQuery
conjuncts
(SearchQuery... queries) Prepare aConjunctionQuery
body.static DateRangeQuery
Prepare aDateRangeQuery
body.static DisjunctionQuery
disjuncts
(SearchQuery... queries) Prepare aDisjunctionQuery
body.static DocIdQuery
Prepare aDocIdQuery
body.export()
Exports the whole query as aJsonObject
.static GeoBoundingBoxQuery
geoBoundingBox
(double topLeftLon, double topLeftLat, double bottomRightLon, double bottomRightLat) Prepare aGeoBoundingBoxQuery
body.static GeoBoundingBoxQuery
geoBoundingBox
(Coordinate topLeftCoordinate, Coordinate bottomRightCoordinate) Prepare aGeoBoundingBoxQuery
body.static GeoDistanceQuery
geoDistance
(double locationLon, double locationLat, String distance) Prepare aGeoDistanceQuery
body.static GeoDistanceQuery
geoDistance
(Coordinate locationCoordinate, String distance) Prepare aGeoDistanceQuery
body.static GeoPolygonQuery
geoPolygon
(List<Coordinate> coordinates) Prepare aGeoPolygonQuery
body.static MatchQuery
Prepare aMatchQuery
body.static MatchAllQuery
matchAll()
Prepare aMatchAllQuery
body.static MatchNoneQuery
Prepare aMatchNoneQuery
body.static MatchPhraseQuery
matchPhrase
(String matchPhrase) Prepare aMatchPhraseQuery
body.static NumericRangeQuery
Prepare aNumericRangeQuery
body.static PhraseQuery
Prepare aPhraseQuery
body.static PrefixQuery
Prepare aPrefixQuery
body.static QueryStringQuery
queryString
(String query) Prepare aQueryStringQuery
body.static RegexpQuery
Prepare aRegexpQuery
body.static TermQuery
Prepare aTermQuery
body.static TermRangeQuery
Prepare aTermRangeQuery
body.abstract CoreSearchQuery
toCore()
toString()
static WildcardQuery
Prepare aWildcardQuery
body.
-
Field Details
-
boost
-
-
Constructor Details
-
SearchQuery
protected SearchQuery()
-
-
Method Details
-
boost
-
toCore
-
export
Exports the whole query as aJsonObject
. -
toString
-
queryString
Prepare aQueryStringQuery
body. -
match
Prepare aMatchQuery
body. -
matchPhrase
Prepare aMatchPhraseQuery
body. -
prefix
Prepare aPrefixQuery
body. -
regexp
Prepare aRegexpQuery
body. -
termRange
Prepare aTermRangeQuery
body. -
numericRange
Prepare aNumericRangeQuery
body. -
dateRange
Prepare aDateRangeQuery
body. -
disjuncts
Prepare aDisjunctionQuery
body. -
conjuncts
Prepare aConjunctionQuery
body. -
booleans
Prepare aBooleanQuery
body. -
wildcard
Prepare aWildcardQuery
body. -
docId
Prepare aDocIdQuery
body. -
booleanField
Prepare aBooleanFieldQuery
body. -
term
Prepare aTermQuery
body. -
phrase
Prepare aPhraseQuery
body. -
matchAll
Prepare aMatchAllQuery
body. -
matchNone
Prepare aMatchNoneQuery
body. -
geoBoundingBox
public static GeoBoundingBoxQuery geoBoundingBox(double topLeftLon, double topLeftLat, double bottomRightLon, double bottomRightLat) Prepare aGeoBoundingBoxQuery
body. -
geoBoundingBox
@Uncommitted public static GeoBoundingBoxQuery geoBoundingBox(Coordinate topLeftCoordinate, Coordinate bottomRightCoordinate) Prepare aGeoBoundingBoxQuery
body. -
geoDistance
Prepare aGeoDistanceQuery
body. -
geoDistance
@Uncommitted public static GeoDistanceQuery geoDistance(Coordinate locationCoordinate, String distance) Prepare aGeoDistanceQuery
body. -
geoPolygon
@Uncommitted @SinceCouchbase("6.5.1") public static GeoPolygonQuery geoPolygon(List<Coordinate> coordinates) Prepare aGeoPolygonQuery
body.
-