41 double distance = (*metric)(centre, doccoords);
Class representing a document.
std::string get_value(Xapian::valueno slot) const
Read a value slot in this document.
A sequence of latitude-longitude coordinates.
void unserialise(std::string_view serialised)
Unserialise a string and set this object to the coordinates in it.
~LatLongDistanceKeyMaker()
std::string operator()(const Xapian::Document &doc) const
Build a key string for a Document.
Class representing a document.
Geospatial search support routines.
The Xapian namespace contains public interfaces for the Xapian library.
std::string sortable_serialise(double value)
Convert a floating point number to a string, preserving sort order.
parsing a user query string to build a Xapian::Query object