Public Member Functions
Xapian::LatLongDistanceKeyMaker Class Reference

KeyMaker subclass which sorts by distance from a latitude/longitude. More...

+ Inheritance diagram for Xapian::LatLongDistanceKeyMaker:

List of all members.

Public Member Functions

std::string operator() (const Xapian::Document &doc) const
 Build a key string for a Document.

Detailed Description

KeyMaker subclass which sorts by distance from a latitude/longitude.

Experimental - see http://xapian.org/docs/deprecation#experimental-features

Results are ordered by the distance from a fixed point, or list of points, calculated according to the metric supplied. If multiple points are supplied (either in the constructor, or in the coordinates stored in a document), the closest pointwise distance is used.

If a document contains no coordinate stored in the specified slot, a special value for the distance will be used. This defaults to a large number, so that such results get a low rank, but may be specified by a constructor parameter.


Member Function Documentation

std::string Xapian::LatLongDistanceKeyMaker::operator() ( const Xapian::Document doc) const [virtual]

Build a key string for a Document.

These keys can be used for sorting or collapsing matching documents.

Parameters:
docDocument object to build a key for.

Implements Xapian::KeyMaker.


The documentation for this class was generated from the following file:

Documentation for Xapian (version 1.3.1).
Generated on Fri May 3 2013 by Doxygen 1.7.6.1.