Class: MmEsSearch::Api::Query::HasChildQuery
Instance Method Summary
collapse
#es_abs_field, #mongo_abs_field, #path_and_index, #to_filter
Instance Method Details
#to_es_query ⇒ Object
15
16
17
18
19
|
# File 'lib/mm_es_search/api/query/has_child_query.rb', line 15
def to_es_query
params = {:type => type, :query => query.to_es_query}
params[:_scope] = scope if scope?
{:has_child => params}
end
|
#to_mongo_query(options = {}) ⇒ Object
11
12
13
|
# File 'lib/mm_es_search/api/query/has_child_query.rb', line 11
def to_mongo_query(options = {})
raise NotImplementedError
end
|