Class: MmEsSearch::Models::RootSortModel
- Inherits:
-
AbstractSortModel
- Object
- AbstractSortModel
- MmEsSearch::Models::RootSortModel
- Defined in:
- lib/mm_es_search/models/root_sort_model.rb
Instance Method Summary collapse
- #to_es_query ⇒ Object
-
#to_mongo_query ⇒ Object
def to_query end.
Instance Method Details
#to_es_query ⇒ Object
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_query ⇒ Object
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 |