@Stability.Internal public abstract class SearchQuery extends Object
SearchQuery.| Modifier | Constructor and Description |
|---|---|
protected |
SearchQuery() |
| Modifier and Type | Method and Description |
|---|---|
static BooleanFieldQuery |
booleanField(boolean value)
Prepare a
BooleanFieldQuery body. |
static BooleanQuery |
booleans()
Prepare a
BooleanQuery body. |
SearchQuery |
boost(double boost) |
static ConjunctionQuery |
conjuncts(SearchQuery... queries)
Prepare a
ConjunctionQuery body. |
static DateRangeQuery |
dateRange()
Prepare a
DateRangeQuery body. |
static DisjunctionQuery |
disjuncts(SearchQuery... queries)
Prepare a
DisjunctionQuery body. |
static DocIdQuery |
docId(String... docIds)
Prepare a
DocIdQuery body. |
JsonObject |
export()
Exports the whole query as a
JsonObject. |
static GeoBoundingBoxQuery |
geoBoundingBox(Coordinate topLeftCoordinate,
Coordinate bottomRightCoordinate)
Prepare a
GeoBoundingBoxQuery body. |
static GeoBoundingBoxQuery |
geoBoundingBox(double topLeftLon,
double topLeftLat,
double bottomRightLon,
double bottomRightLat)
Prepare a
GeoBoundingBoxQuery body. |
static GeoDistanceQuery |
geoDistance(Coordinate locationCoordinate,
String distance)
Prepare a
GeoDistanceQuery body. |
static GeoDistanceQuery |
geoDistance(double locationLon,
double locationLat,
String distance)
Prepare a
GeoDistanceQuery body. |
static GeoPolygonQuery |
geoPolygon(List<Coordinate> coordinates)
Prepare a
GeoPolygonQuery body. |
static MatchQuery |
match(String match)
Prepare a
MatchQuery body. |
static MatchAllQuery |
matchAll()
Prepare a
MatchAllQuery body. |
static MatchNoneQuery |
matchNone()
Prepare a
MatchNoneQuery body. |
static MatchPhraseQuery |
matchPhrase(String matchPhrase)
Prepare a
MatchPhraseQuery body. |
static NumericRangeQuery |
numericRange()
Prepare a
NumericRangeQuery body. |
static PhraseQuery |
phrase(String... terms)
Prepare a
PhraseQuery body. |
static PrefixQuery |
prefix(String prefix)
Prepare a
PrefixQuery body. |
static QueryStringQuery |
queryString(String query)
Prepare a
QueryStringQuery body. |
static RegexpQuery |
regexp(String regexp)
Prepare a
RegexpQuery body. |
static TermQuery |
term(String term)
Prepare a
TermQuery body. |
static TermRangeQuery |
termRange()
Prepare a
TermRangeQuery body. |
abstract com.couchbase.client.core.api.search.CoreSearchQuery |
toCore() |
String |
toString() |
static WildcardQuery |
wildcard(String wildcard)
Prepare a
WildcardQuery body. |
protected Double boost
public SearchQuery boost(double boost)
@Stability.Internal public abstract com.couchbase.client.core.api.search.CoreSearchQuery toCore()
public JsonObject export()
JsonObject.public String toString()
public static QueryStringQuery queryString(String query)
QueryStringQuery body.public static MatchQuery match(String match)
MatchQuery body.public static MatchPhraseQuery matchPhrase(String matchPhrase)
MatchPhraseQuery body.public static PrefixQuery prefix(String prefix)
PrefixQuery body.public static RegexpQuery regexp(String regexp)
RegexpQuery body.public static TermRangeQuery termRange()
TermRangeQuery body.public static NumericRangeQuery numericRange()
NumericRangeQuery body.public static DateRangeQuery dateRange()
DateRangeQuery body.public static DisjunctionQuery disjuncts(SearchQuery... queries)
DisjunctionQuery body.public static ConjunctionQuery conjuncts(SearchQuery... queries)
ConjunctionQuery body.public static BooleanQuery booleans()
BooleanQuery body.public static WildcardQuery wildcard(String wildcard)
WildcardQuery body.public static DocIdQuery docId(String... docIds)
DocIdQuery body.public static BooleanFieldQuery booleanField(boolean value)
BooleanFieldQuery body.public static PhraseQuery phrase(String... terms)
PhraseQuery body.public static MatchAllQuery matchAll()
MatchAllQuery body.public static MatchNoneQuery matchNone()
MatchNoneQuery body.public static GeoBoundingBoxQuery geoBoundingBox(double topLeftLon, double topLeftLat, double bottomRightLon, double bottomRightLat)
GeoBoundingBoxQuery body.@Stability.Uncommitted public static GeoBoundingBoxQuery geoBoundingBox(Coordinate topLeftCoordinate, Coordinate bottomRightCoordinate)
GeoBoundingBoxQuery body.public static GeoDistanceQuery geoDistance(double locationLon, double locationLat, String distance)
GeoDistanceQuery body.@Stability.Uncommitted public static GeoDistanceQuery geoDistance(Coordinate locationCoordinate, String distance)
GeoDistanceQuery body.@Stability.Uncommitted @SinceCouchbase(value="6.5.1") public static GeoPolygonQuery geoPolygon(List<Coordinate> coordinates)
GeoPolygonQuery body.Copyright © 2024 Couchbase, Inc.. All rights reserved.