Class: SortBuilders
- Inherits:
-
Object
- Object
- SortBuilders
- Defined in:
- lib/sort_builders.rb
Class Method Summary collapse
- .field_sort(*args) ⇒ Object
- .geo_distance_sort(*args) ⇒ Object
- .nested_sort(*args) ⇒ Object
- .score_sort ⇒ Object
- .script_sort(*args) ⇒ Object
Class Method Details
.field_sort(*args) ⇒ Object
3 4 5 |
# File 'lib/sort_builders.rb', line 3 def self.field_sort *args return Sort::FieldSortBuilder.new(*args) end |
.geo_distance_sort(*args) ⇒ Object
7 8 9 |
# File 'lib/sort_builders.rb', line 7 def self.geo_distance_sort *args return Sort::GeoDistanceSortBuilder.new(*args) end |
.nested_sort(*args) ⇒ Object
11 12 13 |
# File 'lib/sort_builders.rb', line 11 def self.nested_sort *args return Sort::NestedSortBuilder.new(*args) end |
.score_sort ⇒ Object
15 16 17 |
# File 'lib/sort_builders.rb', line 15 def self.score_sort return Sort::ScoreSortBuilder.new end |
.script_sort(*args) ⇒ Object
19 20 21 |
# File 'lib/sort_builders.rb', line 19 def self.script_sort *args return Sort::ScriptSortBuilder.new(*args) end |