Class GeoDistanceQueryBuilder

    • Field Detail

      • DEFAULT_DISTANCE_UNIT

        public static final DistanceUnit DEFAULT_DISTANCE_UNIT
        Default for distance unit computation.
      • DEFAULT_GEO_DISTANCE

        public static final GeoDistance DEFAULT_GEO_DISTANCE
        Default for geo distance computation.
      • DEFAULT_IGNORE_UNMAPPED

        public static final boolean DEFAULT_IGNORE_UNMAPPED
        The default value for ignore_unmapped.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GeoDistanceQueryBuilder

        public GeoDistanceQueryBuilder​(java.lang.String fieldName)
        Construct new GeoDistanceQueryBuilder.
        Parameters:
        fieldName - name of indexed geo field to operate distance computation on.
      • GeoDistanceQueryBuilder

        public GeoDistanceQueryBuilder​(StreamInput in)
                                throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException