Class: ElasticsearchDslBuilder::DSL::Search::Queries::MatchAll

Inherits:
Query
  • Object
show all
Defined in:
lib/elasticsearch_dsl_builder/dsl/search/queries/match_all.rb

Instance Attribute Summary

Attributes inherited from Query

#query, #type

Instance Method Summary collapse

Constructor Details

#initializeMatchAll

Returns a new instance of MatchAll.



6
7
8
9
# File 'lib/elasticsearch_dsl_builder/dsl/search/queries/match_all.rb', line 6

def initialize
  @type = :match_all
  super()
end

Instance Method Details

#to_hashObject



11
12
13
14
# File 'lib/elasticsearch_dsl_builder/dsl/search/queries/match_all.rb', line 11

def to_hash
  @query = {}
  super
end