Class: Couchbase::SearchQuery::MatchNoneQuery

Inherits:
SearchQuery
  • Object
show all
Defined in:
lib/couchbase/search_options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/search_options.rb

Overview

A query that matches nothing.

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ MatchNoneQuery

Returns a new instance of MatchNoneQuery.

Yield Parameters:



1033
1034
1035
1036
# File 'lib/couchbase/search_options.rb', line 1033

def initialize
  super
  yield self if block_given?
end

Instance Method Details

#to_h ⇒ Hash<Symbol, #to_json>

Returns:



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

def to_h
  {:match_none => nil}
end