The BIASDISTCARTESIAN field specifier allows you to boost the score of any document according to its distance from a specified point using Cartesian coordinates (X/Y).


coordX The specified x coordinate.
coordY The specified y coordinate.
range The distance in kilometers from the specified coordinates.
maxboost The maximum percentage to boost the result.
X The document field containing the X coordinate.
Y The document field containing the Y coordinate.

You must specify two fields in the order X:Y. The fields must be NumericType.



In this example, all documents whose (X/Y) position is within a distance of 5 units of the point (10,11) are given a relevance boost. The maximum boost of 7 percent is given to documents at the given point. The boost decreases linearly down to 0 boost at 5 units.