Class GeoContextMapping.Builder

    • Constructor Detail

      • Builder

        public Builder​(java.lang.String name)
    • Method Detail

      • precision

        public GeoContextMapping.Builder precision​(java.lang.String precision)
        Set the precision use o make suggestions
        Parameters:
        precision - precision as distance with DistanceUnit. Default: meters
        Returns:
        this
      • precision

        public GeoContextMapping.Builder precision​(double meters)
        Set the precision use o make suggestions
        Parameters:
        meters - precision as distance in meters
        Returns:
        this
      • precision

        public GeoContextMapping.Builder precision​(int level)
        Set the precision use o make suggestions
        Parameters:
        level - maximum length of geohashes
        Returns:
        this
      • field

        public GeoContextMapping.Builder field​(java.lang.String fieldName)
        Set the name of the field containing a geolocation to use
        Parameters:
        fieldName - name of the field
        Returns:
        this