/** * Set the radius of the circle * @param radius value of the circles radius * @param unit unit name of the radius value (see {@link DistanceUnit}) * @return this */ public CircleBuilder radius(double radius, String unit) { return radius(radius, DistanceUnit.fromString(unit)); }
unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentFieldName, parser.getDeprecationHandler())) { geoDistance = GeoDistance.fromString(parser.text());
/** * Set the radius of the circle * @param radius value of the circles radius * @param unit unit name of the radius value (see {@link DistanceUnit}) * @return this */ public CircleBuilder radius(double radius, String unit) { return radius(radius, DistanceUnit.fromString(unit)); }
/** * Set the radius of the circle * @param radius value of the circles radius * @param unit unit name of the radius value (see {@link DistanceUnit}) * @return this */ public CircleBuilder radius(double radius, String unit) { return radius(radius, DistanceUnit.fromString(unit)); }
/** * Set the radius of the circle * @param radius value of the circles radius * @param unit unit name of the radius value (see {@link DistanceUnit}) * @return this */ public CircleBuilder radius(double radius, String unit) { return radius(radius, DistanceUnit.fromString(unit)); }
/** * Set the radius of the circle * @param radius value of the circles radius * @param unit unit name of the radius value (see {@link DistanceUnit}) * @return this */ public CircleBuilder radius(double radius, String unit) { return radius(radius, DistanceUnit.fromString(unit)); }
order = SortOrder.fromString(parser.text()); } else if (UNIT_FIELD.match(currentName, parser.getDeprecationHandler())) { unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentName, parser.getDeprecationHandler())) { geoDistance = GeoDistance.fromString(parser.text());
reverse = "desc".equals(parser.text()); } else if (currentName.equals("unit")) { unit = DistanceUnit.fromString(parser.text()); } else if (currentName.equals("distance_type") || currentName.equals("distanceType")) { geoDistance = GeoDistance.fromString(parser.text());
} else if (token == XContentParser.Token.VALUE_STRING) { if ("unit".equals(currentFieldName)) { unit = DistanceUnit.fromString(parser.text()); } else if ("distance_type".equals(currentFieldName) || "distanceType".equals(currentFieldName)) { distanceType = GeoDistance.fromString(parser.text());
unit = DistanceUnit.fromString(parser.text()); } else if (currentFieldName.equals("distance_type") || currentFieldName.equals("distanceType")) { geoDistance = GeoDistance.fromString(parser.text());
unit = DistanceUnit.fromString(parser.text()); } else if (currentFieldName.equals("distance_type") || currentFieldName.equals("distanceType")) { geoDistance = GeoDistance.fromString(parser.text());
unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentFieldName, parser.getDeprecationHandler())) { geoDistance = GeoDistance.fromString(parser.text());
order = SortOrder.fromString(parser.text()); } else if (UNIT_FIELD.match(currentName)) { unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentName)) { geoDistance = GeoDistance.fromString(parser.text());
unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentFieldName, parser.getDeprecationHandler())) { geoDistance = GeoDistance.fromString(parser.text());
unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentFieldName)) { geoDistance = GeoDistance.fromString(parser.text());
order = SortOrder.fromString(parser.text()); } else if (UNIT_FIELD.match(currentName, parser.getDeprecationHandler())) { unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentName, parser.getDeprecationHandler())) { geoDistance = GeoDistance.fromString(parser.text());
order = SortOrder.fromString(parser.text()); } else if (UNIT_FIELD.match(currentName, parser.getDeprecationHandler())) { unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentName, parser.getDeprecationHandler())) { geoDistance = GeoDistance.fromString(parser.text());
unit = DistanceUnit.fromString(parser.text()); } else if (DISTANCE_TYPE_FIELD.match(currentFieldName)) { geoDistance = GeoDistance.fromString(parser.text());