Class: Couchbase::SearchQuery::MatchAllQuery

Inherits:
SearchQuery
  • Object
show all
Defined in:
lib/couchbase/search_options.rb

Overview

A query that matches all indexed documents.

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MatchAllQuery.

Yield Parameters:



1014
1015
1016
1017
# File 'lib/couchbase/search_options.rb', line 1014

def initialize
  super
  yield self if block_given?
end

Instance Method Details

#to_hHash<Symbol, #to_json>

Returns:



1020
1021
1022
# File 'lib/couchbase/search_options.rb', line 1020

def to_h
  {:match_all => nil}
end