Class: MmEsSearch::Models::RootSortModel

Inherits:
AbstractSortModel show all
Defined in:
lib/mm_es_search/models/root_sort_model.rb

Instance Method Summary collapse

Instance Method Details

#to_es_queryObject



14
15
16
# File 'lib/mm_es_search/models/root_sort_model.rb', line 14

def to_es_query
  RootSort.new(:field => field, :direction => direction).to_es_query
end

#to_mongo_queryObject

def to_query end



10
11
12
# File 'lib/mm_es_search/models/root_sort_model.rb', line 10

def to_mongo_query
  RootSort.new(:field => field, :direction => direction).to_mongo_query
end