Create new query from hash.
Elasticsearch::Query.new.to_hash #=> {query: {filtered: {query: {match_all:{}}}}}
Parameters:
passed as hash. When it not passed use default es ‘match_all’ query
16 17 18 19
# File 'lib/elasticquery/query.rb', line 16 def initialize(query = DEFAULT) @query = query @filters = [] end