Class: MmEsSearch::Api::Query::TopChildrenQuery

Inherits:
AbstractQuery show all
Defined in:
lib/mm_es_search/api/query/top_children_query.rb

Instance Method Summary collapse

Methods inherited from AbstractQuery

#es_abs_field, #mongo_abs_field, #path_and_index, #to_filter

Instance Method Details

#to_es_queryObject



18
19
20
21
22
# File 'lib/mm_es_search/api/query/top_children_query.rb', line 18

def to_es_query
  query_params = attributes.except('query', '_type')
  query_params[:query] = query.to_es_query
  {:top_children => query_params} 
end

#to_mongo_query(options = {}) ⇒ Object



14
15
16
# File 'lib/mm_es_search/api/query/top_children_query.rb', line 14

def to_mongo_query(options = {})
  
end