point.resetLat(parser.doubleValue()); } else if (currentName.equals("lon")) { point.resetLon(parser.doubleValue()); } else if (currentName.equals("geohash")) { point.resetFromGeoHash(parser.text()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lat".length()); } else if (currentFieldName.endsWith(".lon")) { point.resetLon(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lon".length()); } else if (AbstractQueryBuilder.NAME_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
/** * Set the longitude of the point to calculate distances from. */ public GeoDistanceBuilder lon(double lon) { if (this.point == null) { point = new GeoPoint(); } point.resetLon(lon); return this; }
fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LAT_SUFFIX.length()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LON_SUFFIX)) { point.resetLon(parser.doubleValue()); } else if ("_name".equals(currentFieldName)) { queryName = parser.text();
point.resetLat(parser.doubleValue()); } else if (currentName.equals(GeoPointFieldMapper.Names.LON)) { point.resetLon(parser.doubleValue()); } else if (currentName.equals(GeoPointFieldMapper.Names.GEOHASH)) { point.resetFromGeoHash(parser.text()); fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LAT_SUFFIX.length()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LON_SUFFIX)) { point.resetLon(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LON_SUFFIX.length()); } else if ("_name".equals(currentFieldName)) {
point.resetLat(parser.doubleValue()); } else if (currentName.equals("lon")) { point.resetLon(parser.doubleValue()); } else if (currentName.equals("geohash")) { point.resetFromGeoHash(parser.text()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lat".length()); } else if (currentFieldName.endsWith(".lon")) { point.resetLon(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lon".length()); } else if (AbstractQueryBuilder.NAME_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
point.resetLat(parser.doubleValue()); } else if (currentName.equals("lon")) { point.resetLon(parser.doubleValue()); } else if (currentName.equals("geohash")) { point.resetFromGeoHash(parser.text()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lat".length()); } else if (currentFieldName.endsWith(".lon")) { point.resetLon(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lon".length()); } else if (AbstractQueryBuilder.NAME_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
point.resetLat(parser.doubleValue()); } else if (currentName.equals(GeoPointFieldMapper.Names.LON)) { point.resetLon(parser.doubleValue()); } else if (currentName.equals(GeoPointFieldMapper.Names.GEOHASH)) { point.resetFromGeoHash(parser.text()); fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LAT_SUFFIX.length()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LON_SUFFIX)) { point.resetLon(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LON_SUFFIX.length()); } else if (AbstractQueryBuilder.NAME_FIELD.match(currentFieldName)) {
point = new GeoPoint(); point.resetLon(parser.doubleValue()); } else if (NAME_FIELD.match(currentFieldName)) { queryName = parser.text();