Package org.elasticsearch.index.mapper.geo

Examples of org.elasticsearch.index.mapper.geo.GeoPointFieldData.multiValued()


            @Override public boolean get(int doc) throws IOException {
                if (!fieldData.hasValue(doc)) {
                    return false;
                }

                if (fieldData.multiValued()) {
                    double[] lats = fieldData.latValues(doc);
                    double[] lons = fieldData.lonValues(doc);
                    for (int i = 0; i < lats.length; i++) {
                        double d = geoDistance.calculate(lat, lon, lats[i], lons[i], DistanceUnit.MILES);
                        if (d >= inclusiveLowerPoint && d <= inclusiveUpperPoint) {
View Full Code Here


            @Override public boolean get(int doc) throws IOException {
                if (!fieldData.hasValue(doc)) {
                    return false;
                }

                if (fieldData.multiValued()) {
                    double[] lats = fieldData.latValues(doc);
                    double[] lons = fieldData.lonValues(doc);
                    for (int i = 0; i < lats.length; i++) {
                        if (pointInPolygon(points, lats[i], lons[i])) {
                            return true;
View Full Code Here

            @Override public boolean get(int doc) throws IOException {
                if (!fieldData.hasValue(doc)) {
                    return false;
                }

                if (fieldData.multiValued()) {
                    double[] lats = fieldData.latValues(doc);
                    double[] lons = fieldData.lonValues(doc);
                    for (int i = 0; i < lats.length; i++) {
                        double d = geoDistance.calculate(lat, lon, lats[i], lons[i], DistanceUnit.MILES);
                        if (d < distance) {
View Full Code Here

                @Override public boolean get(int doc) throws IOException {
                    if (!fieldData.hasValue(doc)) {
                        return false;
                    }

                    if (fieldData.multiValued()) {
                        double[] lats = fieldData.latValues(doc);
                        double[] lons = fieldData.lonValues(doc);
                        for (int i = 0; i < lats.length; i++) {
                            double lat = lats[i];
                            double lon = lons[i];
View Full Code Here

                @Override public boolean get(int doc) throws IOException {
                    if (!fieldData.hasValue(doc)) {
                        return false;
                    }

                    if (fieldData.multiValued()) {
                        double[] lats = fieldData.latValues(doc);
                        double[] lons = fieldData.lonValues(doc);
                        for (int i = 0; i < lats.length; i++) {
                            if (topLeft.lon <= lons[i] && bottomRight.lon >= lons[i]
                                    && topLeft.lat >= lats[i] && bottomRight.lat <= lats[i]) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.