Class: Couchbase::Cluster::SearchQuery
- Inherits:
-
Object
- Object
- Couchbase::Cluster::SearchQuery
- Defined in:
- lib/couchbase/search_options.rb
Direct Known Subclasses
BooleanFieldQuery, BooleanQuery, ConjunctionQuery, DateRangeQuery, DisjunctionQuery, DocIdQuery, GeoBoundingBoxQuery, GeoDistanceQuery, MatchAllQuery, MatchNoneQuery, MatchPhraseQuery, MatchQuery, NumericRangeQuery, PhraseQuery, PrefixQuery, QueryStringQuery, RegexpQuery, TermQuery, TermRangeQuery, WildcardQuery
Defined Under Namespace
Classes: BooleanFieldQuery, BooleanQuery, ConjunctionQuery, DateRangeQuery, DisjunctionQuery, DocIdQuery, GeoBoundingBoxQuery, GeoDistanceQuery, 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.
-
.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
695 696 697 |
# File 'lib/couchbase/search_options.rb', line 695 def self.booleans(&block) BooleanQuery.new(&block) end |
.conjuncts(*queries) {|query| ... } ⇒ ConjunctionQuery
Prepare ConjunctionQuery body
606 607 608 |
# File 'lib/couchbase/search_options.rb', line 606 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
647 648 649 |
# File 'lib/couchbase/search_options.rb', line 647 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
562 563 564 |
# File 'lib/couchbase/search_options.rb', line 562 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
516 517 518 |
# File 'lib/couchbase/search_options.rb', line 516 def self.geo_distance(longitude, latitude, distance, &block) GeoDistanceQuery.new(longitude, latitude, distance, &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
874 875 876 |
# File 'lib/couchbase/search_options.rb', line 874 def self.match_all(&block) MatchAllQuery.new(&block) end |
.match_none {|query| ... } ⇒ MatchNoneQuery
Prepare MatchNoneQuery body
902 903 904 |
# File 'lib/couchbase/search_options.rb', line 902 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
372 373 374 |
# File 'lib/couchbase/search_options.rb', line 372 def self.numeric_range(&block) NumericRangeQuery.new(&block) end |
.phrase(*terms) {|query| ... } ⇒ PhraseQuery
Prepare PhraseQuery body
839 840 841 |
# File 'lib/couchbase/search_options.rb', line 839 def self.phrase(*terms, &block) PhraseQuery.new(*terms, &block) end |
.prefix(prefix) {|query| ... } ⇒ PrefixQuery
Prepare PrefixQuery body
803 804 805 |
# File 'lib/couchbase/search_options.rb', line 803 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
757 758 759 |
# File 'lib/couchbase/search_options.rb', line 757 def self.term(term, &block) TermQuery.new(term, &block) end |
.term_range {|query| ... } ⇒ TermRangeQuery
Prepare TermRangeQuery body
442 443 444 |
# File 'lib/couchbase/search_options.rb', line 442 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 |