Class: JayAPI::Elasticsearch::QueryBuilder::QueryClauses::MatchNone

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

Overview

Represents a match_none 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#query-dsl-match-none-query

Instance Method Summary collapse

Instance Method Details

#to_hHash

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

Returns:

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



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

def to_h
  { match_none: {} }
end