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.
943 944 945 946 |
# File 'lib/couchbase/search_options.rb', line 943 def initialize super() yield self if block_given? end |
Instance Attribute Details
#boost ⇒ Float
940 941 942 |
# File 'lib/couchbase/search_options.rb', line 940 def boost @boost end |
Instance Method Details
#to_json(*args) ⇒ String
949 950 951 952 953 |
# File 'lib/couchbase/search_options.rb', line 949 def to_json(*args) data = {"match_all" => nil} data["boost"] = boost if boost data.to_json(*args) end |