Class: Queries::MatchAllQueryBuilder

Inherits:
QueryBuilder show all
Defined in:
lib/queries/match_all_query_builder.rb

Constant Summary collapse

NAME =
'match_all'

Instance Method Summary collapse

Methods inherited from QueryBuilder

#boost

Methods included from AttributesReader

#attributes

Methods included from AbstractQueryBuilder

#do_equals?, #name

Instance Method Details

#queryObject



8
9
10
11
12
13
# File 'lib/queries/match_all_query_builder.rb', line 8

def query
  query = {}
  matchall_query = self.common_query
  query[name.intern] = matchall_query
  return query
end