|
Couchbase C++ SDK 1.4.0 (rev. 59aa900)
|
Sorts by location in the hits. More...
#include <couchbase/search_sort_geo_distance.hxx>

Public Member Functions | |
| search_sort_geo_distance (geo_point location, std::string field) | |
| search_sort_geo_distance (double latitude, double longitude, std::string field) | |
| auto | descending (bool desc) -> search_sort_geo_distance & |
| Set the sorting direction. | |
| auto | unit (search_geo_distance_units unit) -> search_sort_geo_distance & |
| Specifies the unit used for sorting. | |
| auto | encode () const -> encoded_search_sort override |
| Public Member Functions inherited from search_sort | |
| virtual | ~search_sort ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from search_sort | |
| search_sort ()=default | |
| search_sort (bool descending) | |
| Protected Attributes inherited from search_sort | |
| std::optional< bool > | descending_ {} |
Sorts by location in the hits.
|
inline |
|
inline |
| auto descending | ( | bool | desc | ) | -> search_sort_geo_distance & |
Set the sorting direction.
| desc | true for descending order, false for ascending |
|
nodiscardoverridevirtual |
Implements search_sort.
| auto unit | ( | search_geo_distance_units | unit | ) | -> search_sort_geo_distance & |
Specifies the unit used for sorting.
| unit | the unit used |