Class: Couchbase::Cluster::SearchQuery::MatchAllQuery
- Inherits:
-
Couchbase::Cluster::SearchQuery
- Object
- Couchbase::Cluster::SearchQuery
- Couchbase::Cluster::SearchQuery::MatchAllQuery
- Defined in:
- lib/couchbase/search_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/search_options.rb more...
Overview
A query that matches all indexed documents.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ MatchAllQuery
constructor
A new instance of MatchAllQuery.
- #to_json(*args) ⇒ String
Methods inherited from Couchbase::Cluster::SearchQuery
boolean_field, booleans, conjuncts, date_range, disjuncts, doc_id, geo_bounding_box, geo_distance, geo_polygon, match, match_all, match_none, match_phrase, numeric_range, phrase, prefix, query_string, regexp, term, term_range, wildcard
Constructor Details
#initialize {|self| ... } ⇒ MatchAllQuery
Returns a new instance of MatchAllQuery.
1022 1023 1024 1025 |
# File 'lib/couchbase/search_options.rb', line 1022 def initialize super() yield self if block_given? end |
Instance Attribute Details
#boost ⇒ Float
1016 1017 1018 |
# File 'lib/couchbase/search_options.rb', line 1016 def boost @boost end |
#operator ⇒ nil, ...
1019 1020 1021 |
# File 'lib/couchbase/search_options.rb', line 1019 def operator @operator end |
Instance Method Details
#to_json(*args) ⇒ String
1028 1029 1030 1031 1032 1033 |
# File 'lib/couchbase/search_options.rb', line 1028 def to_json(*args) data = {"match_all" => nil} data["boost"] = boost if boost data["operator"] = operator.to_s if operator data.to_json(*args) end |