Class: Couchbase::SearchQuery::MatchNoneQuery

Inherits:
Couchbase::SearchQuery show all
Defined in:
lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/lib/couchbase/search_options.rb

Overview

A query that matches nothing.

Instance Method Summary collapse

Methods inherited from Couchbase::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.

Yield Parameters:



1037
1038
1039
1040
# File 'lib/couchbase/search_options.rb', line 1037

def initialize
  super
  yield self if block_given?
end

Instance Method Details

#to_hHash<Symbol, #to_json>

Returns:



1043
1044
1045
# File 'lib/couchbase/search_options.rb', line 1043

def to_h
  {:match_none => nil}
end