Class: Couchbase::Cluster::SearchQuery
- Inherits:
-
Object
- Object
- Couchbase::Cluster::SearchQuery
- Defined in:
- lib/couchbase/search_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/search_options.rb more...
Direct Known Subclasses
BooleanFieldQuery, BooleanQuery, ConjunctionQuery, DateRangeQuery, DisjunctionQuery, DocIdQuery, GeoBoundingBoxQuery, GeoDistanceQuery, GeoPolygonQuery, MatchAllQuery, MatchNoneQuery, MatchPhraseQuery, MatchQuery, NumericRangeQuery, PhraseQuery, PrefixQuery, QueryStringQuery, RegexpQuery, TermQuery, TermRangeQuery, WildcardQuery
Defined Under Namespace
Classes: BooleanFieldQuery, BooleanQuery, ConjunctionQuery, Coordinate, DateRangeQuery, DisjunctionQuery, DocIdQuery, GeoBoundingBoxQuery, GeoDistanceQuery, GeoPolygonQuery, MatchAllQuery, MatchNoneQuery, MatchPhraseQuery, MatchQuery, NumericRangeQuery, PhraseQuery, PrefixQuery, QueryStringQuery, RegexpQuery, TermQuery, TermRangeQuery, WildcardQuery
Class Method Summary collapse
-
.boolean_field(value) {|query| ... } ⇒ BooleanFieldQuery
Prepare BooleanFieldQuery body.
-
.booleans {|query| ... } ⇒ BooleanQuery
Prepare BooleanQuery body.
-
.conjuncts(*queries) {|query| ... } ⇒ ConjunctionQuery
Prepare ConjunctionQuery body.
-
.date_range {|query| ... } ⇒ DateRangeQuery
Prepare DateRangeQuery body.
-
.disjuncts(*queries) {|query| ... } ⇒ ConjunctionQuery
Prepare ConjunctionQuery body.
-
.doc_id(*doc_ids) {|query| ... } ⇒ DocIdQuery
Prepare DocIdQuery body.
-
.geo_bounding_box(top_left_longitude, top_left_latitude, bottom_right_longitude, bottom_right_latitude) {|query| ... } ⇒ GeoBoundingBoxQuery
Prepare GeoBoundingBoxQuery body.
-
.geo_distance(longitude, latitude, distance) {|query| ... } ⇒ GeoDistanceQuery
Prepare GeoDistanceQuery body.
-
.geo_polygon(coordinates) {|query| ... } ⇒ GeoPolygonQuery
Prepare GeoPolygonQuery body.
-
.match(match) {|query| ... } ⇒ MatchQuery
Prepare MatchQuery body.
-
.match_all {|query| ... } ⇒ MatchAllQuery
Prepare MatchAllQuery body.
-
.match_none {|query| ... } ⇒ MatchNoneQuery
Prepare MatchNoneQuery body.
-
.match_phrase(match_phrase) {|query| ... } ⇒ MatchPhraseQuery
Prepare MatchPhraseQuery body.
-
.numeric_range {|query| ... } ⇒ NumericRangeQuery
Prepare NumericRangeQuery body.
-
.phrase(*terms) {|query| ... } ⇒ PhraseQuery
Prepare PhraseQuery body.
-
.prefix(prefix) {|query| ... } ⇒ PrefixQuery
Prepare PrefixQuery body.
-
.query_string(query_string) {|query| ... } ⇒ QueryStringQuery
Prepare QueryStringQuery body.
-
.regexp(regexp) {|query| ... } ⇒ RegexpQuery
Prepare RegexpQuery body.
-
.term(term) {|query| ... } ⇒ TermQuery
Prepare TermQuery body.
-
.term_range {|query| ... } ⇒ TermRangeQuery
Prepare TermRangeQuery body.
-
.wildcard(wildcard) {|query| ... } ⇒ WildcardQuery
Prepare WildcardQuery body.
Class Method Details
.boolean_field(value) {|query| ... } ⇒ BooleanFieldQuery
Prepare BooleanFieldQuery body
253 254 255 |
# File 'lib/couchbase/search_options.rb', line 253 def self.boolean_field(value) BooleanFieldQuery.new(value) end |
.booleans {|query| ... } ⇒ BooleanQuery
Prepare BooleanQuery body
751 752 753 |
# File 'lib/couchbase/search_options.rb', line 751 def self.booleans(&block) BooleanQuery.new(&block) end |
.conjuncts(*queries) {|query| ... } ⇒ ConjunctionQuery
Prepare ConjunctionQuery body
659 660 661 |
# File 'lib/couchbase/search_options.rb', line 659 def self.conjuncts(*queries, &block) ConjunctionQuery.new(*queries, &block) end |
.date_range {|query| ... } ⇒ DateRangeQuery
Prepare DateRangeQuery body
288 289 290 |
# File 'lib/couchbase/search_options.rb', line 288 def self.date_range(&block) DateRangeQuery.new(&block) end |
.disjuncts(*queries) {|query| ... } ⇒ ConjunctionQuery
Prepare ConjunctionQuery body
701 702 703 |
# File 'lib/couchbase/search_options.rb', line 701 def self.disjuncts(*queries, &block) DisjunctionQuery.new(*queries, &block) end |
.doc_id(*doc_ids) {|query| ... } ⇒ DocIdQuery
Prepare DocIdQuery body
217 218 219 |
# File 'lib/couchbase/search_options.rb', line 217 def self.doc_id(*doc_ids) DocIdQuery.new(*doc_ids) end |
.geo_bounding_box(top_left_longitude, top_left_latitude, bottom_right_longitude, bottom_right_latitude) {|query| ... } ⇒ GeoBoundingBoxQuery
Prepare GeoBoundingBoxQuery body
557 558 559 |
# File 'lib/couchbase/search_options.rb', line 557 def self.geo_bounding_box(top_left_longitude, top_left_latitude, bottom_right_longitude, bottom_right_latitude, &block) GeoBoundingBoxQuery.new(top_left_longitude, top_left_latitude, bottom_right_longitude, bottom_right_latitude, &block) end |
.geo_distance(longitude, latitude, distance) {|query| ... } ⇒ GeoDistanceQuery
Prepare GeoDistanceQuery body
511 512 513 |
# File 'lib/couchbase/search_options.rb', line 511 def self.geo_distance(longitude, latitude, distance, &block) GeoDistanceQuery.new(longitude, latitude, distance, &block) end |
.geo_polygon(coordinates) {|query| ... } ⇒ GeoPolygonQuery
Prepare GeoPolygonQuery body
622 623 624 |
# File 'lib/couchbase/search_options.rb', line 622 def self.geo_polygon(coordinates, &block) GeoPolygonQuery.new(coordinates, &block) end |
.match(match) {|query| ... } ⇒ MatchQuery
Prepare MatchQuery body
24 25 26 |
# File 'lib/couchbase/search_options.rb', line 24 def self.match(match, &block) MatchQuery.new(match, &block) end |
.match_all {|query| ... } ⇒ MatchAllQuery
Prepare MatchAllQuery body
933 934 935 |
# File 'lib/couchbase/search_options.rb', line 933 def self.match_all(&block) MatchAllQuery.new(&block) end |
.match_none {|query| ... } ⇒ MatchNoneQuery
Prepare MatchNoneQuery body
961 962 963 |
# File 'lib/couchbase/search_options.rb', line 961 def self.match_none(&block) MatchNoneQuery.new(&block) end |
.match_phrase(match_phrase) {|query| ... } ⇒ MatchPhraseQuery
Prepare MatchPhraseQuery body
73 74 75 |
# File 'lib/couchbase/search_options.rb', line 73 def self.match_phrase(match_phrase, &block) MatchPhraseQuery.new(match_phrase, &block) end |
.numeric_range {|query| ... } ⇒ NumericRangeQuery
Prepare NumericRangeQuery body
371 372 373 |
# File 'lib/couchbase/search_options.rb', line 371 def self.numeric_range(&block) NumericRangeQuery.new(&block) end |
.phrase(*terms) {|query| ... } ⇒ PhraseQuery
Prepare PhraseQuery body
897 898 899 |
# File 'lib/couchbase/search_options.rb', line 897 def self.phrase(*terms, &block) PhraseQuery.new(*terms, &block) end |
.prefix(prefix) {|query| ... } ⇒ PrefixQuery
Prepare PrefixQuery body
861 862 863 |
# File 'lib/couchbase/search_options.rb', line 861 def self.prefix(prefix, &block) PrefixQuery.new(prefix, &block) end |
.query_string(query_string) {|query| ... } ⇒ QueryStringQuery
Prepare QueryStringQuery body
149 150 151 |
# File 'lib/couchbase/search_options.rb', line 149 def self.query_string(query_string, &block) QueryStringQuery.new(query_string, &block) end |
.regexp(regexp) {|query| ... } ⇒ RegexpQuery
Prepare RegexpQuery body
113 114 115 |
# File 'lib/couchbase/search_options.rb', line 113 def self.regexp(regexp, &block) RegexpQuery.new(regexp, &block) end |
.term(term) {|query| ... } ⇒ TermQuery
Prepare TermQuery body
814 815 816 |
# File 'lib/couchbase/search_options.rb', line 814 def self.term(term, &block) TermQuery.new(term, &block) end |
.term_range {|query| ... } ⇒ TermRangeQuery
Prepare TermRangeQuery body
439 440 441 |
# File 'lib/couchbase/search_options.rb', line 439 def self.term_range(&block) TermRangeQuery.new(&block) end |
.wildcard(wildcard) {|query| ... } ⇒ WildcardQuery
Prepare WildcardQuery body
181 182 183 |
# File 'lib/couchbase/search_options.rb', line 181 def self.wildcard(wildcard, &block) WildcardQuery.new(wildcard, &block) end |