Package org.elasticsearch.common.geo.builders

Examples of org.elasticsearch.common.geo.builders.EnvelopeBuilder


public class GeoShapeQueryBuilderTests extends ElasticsearchTestCase {

    @Test // see #3878
    public void testThatXContentSerializationInsideOfArrayWorks() throws Exception {
        EnvelopeBuilder envelopeBuilder = ShapeBuilder.newEnvelope().topLeft(0, 0).bottomRight(10, 10);
        GeoShapeQueryBuilder geoQuery = QueryBuilders.geoShapeQuery("searchGeometry", envelopeBuilder);
        JsonXContent.contentBuilder().startArray().value(geoQuery).endArray();
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.geo.builders.EnvelopeBuilder

Copyright © 2018 www.massapicom. 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.