Class: Couchbase::Cluster::SearchSort
- Inherits:
-
Object
- Object
- Couchbase::Cluster::SearchSort
- Defined in:
- lib/couchbase/search_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/search_options.rb more...
Direct Known Subclasses
SearchSortField, SearchSortGeoDistance, SearchSortId, SearchSortScore
Defined Under Namespace
Classes: SearchSortField, SearchSortGeoDistance, SearchSortId, SearchSortScore
Class Method Summary collapse
- .field(name) {|| ... } ⇒ SearchSortField
- .geo_distance(name, longitude, latitude) {|| ... } ⇒ SearchSortGeoDistance
- .id {|| ... } ⇒ SearchSortScore
- .score {|| ... } ⇒ SearchSortScore
Class Method Details
.field(name) {|| ... } ⇒ SearchSortField
1002 1003 1004 |
# File 'lib/couchbase/search_options.rb', line 1002 def self.field(name, &block) SearchSortField.new(name, &block) end |
.geo_distance(name, longitude, latitude) {|| ... } ⇒ SearchSortGeoDistance
1011 1012 1013 |
# File 'lib/couchbase/search_options.rb', line 1011 def self.geo_distance(name, longitude, latitude, &block) SearchSortGeoDistance.new(name, longitude, latitude, &block) end |
.id {|| ... } ⇒ SearchSortScore
995 996 997 |
# File 'lib/couchbase/search_options.rb', line 995 def self.id(&block) SearchSortId.new(&block) end |
.score {|| ... } ⇒ SearchSortScore
989 990 991 |
# File 'lib/couchbase/search_options.rb', line 989 def self.score(&block) SearchSortScore.new(&block) end |