Class GeoBoost

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class GeoBoost
    extends UnaryFieldExpression
    Computes a boost score based on the geographical distance from a center point.
    See Also:
    Serialized Form
    • Constructor Detail

      • GeoBoost

        public GeoBoost​(java.lang.String fieldName,
                        double latitude,
                        double longitude)
        Constructor.
      • GeoBoost

        public GeoBoost​(FieldExpression expression,
                        double latitude,
                        double longitude)
        Constructor.
    • Method Detail

      • getLatitude

        public double getLatitude()
        Get the center latitude to calculate distance to.
      • setLatitude

        public void setLatitude​(double latitude)
        Set the center latitude to calculate distance to.
      • getLongitude

        public double getLongitude()
        Get the center longitude to calculate distance to.
      • setLongitude

        public void setLongitude​(double longitude)
        Set the center longitude to calculate distance to.