Class: Couchbase::Cluster::SearchQuery::MatchNoneQuery
- Inherits:
-
Couchbase::Cluster::SearchQuery
- Object
- Couchbase::Cluster::SearchQuery
- Couchbase::Cluster::SearchQuery::MatchNoneQuery
- 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 nothing.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ MatchNoneQuery
constructor
A new instance of MatchNoneQuery.
- #to_h ⇒ Hash<Symbol, #to_json>
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, #to_json, wildcard
Constructor Details
#initialize {|self| ... } ⇒ MatchNoneQuery
Returns a new instance of MatchNoneQuery.
974 975 976 977 |
# File 'lib/couchbase/search_options.rb', line 974 def initialize super() yield self if block_given? end |
Instance Method Details
#to_h ⇒ Hash<Symbol, #to_json>
980 981 982 |
# File 'lib/couchbase/search_options.rb', line 980 def to_h {:match_none => nil} end |