Class: JayAPI::Elasticsearch::QueryBuilder::QueryClauses::MatchAll

Inherits:
QueryClause
  • Object
show all
Defined in:
lib/jay_api/elasticsearch/query_builder/query_clauses/match_all.rb

Overview

Represents a match_all query Documentation for this type of query can be found here: www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.html

Instance Method Summary collapse

Instance Method Details

#to_hHash

Returns The Hash representation of the Query Clause (in Elasticsearch’s format).

Returns:

  • (Hash)

    The Hash representation of the Query Clause (in Elasticsearch’s format)



15
16
17
# File 'lib/jay_api/elasticsearch/query_builder/query_clauses/match_all.rb', line 15

def to_h
  { match_all: {} }
end