39 : location_{ location }
40 , field_{ std::move(field) }
45 : location_{
geo_point{ latitude, longitude } }
46 , field_{ std::move(field) }
77 [[nodiscard]]
auto encode() const -> encoded_search_sort override;
Sorts by location in the hits.
Definition search_sort_geo_distance.hxx:36
auto encode() const -> encoded_search_sort override
search_sort_geo_distance(geo_point location, std::string field)
Definition search_sort_geo_distance.hxx:38
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.
search_sort_geo_distance(double latitude, double longitude, std::string field)
Definition search_sort_geo_distance.hxx:44
Base class for full text sort objects of search queries.
Definition search_sort.hxx:36
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
search_geo_distance_units
Enumeration of units for geo_distance sorting.
Definition search_geo_distance_units.hxx:25
Tuple representing geographical point.
Definition geo_point.hxx:28