Examples of ShapeBuilder


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

        .addTag("highway", "residential").addTag("name", "Avenue Marc Sangnier").build();
    indexAdminService.index(INDEX_NAME, ESEntityType.WAY.getIndiceName(), 40849832l, way.toJson());
    refresh();

    // Action
        ShapeBuilder shape = buildSquareShape(48.676455, 2.380899, 20);
    SearchResponse searchResponse = client().prepareSearch(INDEX_NAME).setTypes(ESEntityType.WAY.getIndiceName())
        .setQuery(QueryBuilders.matchAllQuery())
        .setPostFilter(new GeoShapeFilterBuilder("shape", shape))
        .execute().actionGet();
View Full Code Here

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

    @Override
    public void parse(ParseContext context) throws IOException {
        try {
            Shape shape = context.parseExternalValue(Shape.class);
            if (shape == null) {
                ShapeBuilder shapeBuilder = ShapeBuilder.parse(context.parser());
                if (shapeBuilder == null) {
                    return;
                }
                shape = shapeBuilder.build();
            }
            Field[] fields = defaultStrategy.createIndexableFields(shape);
            if (fields == null || fields.length == 0) {
                return;
            }
View Full Code Here

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

        XContentParser parser = parseContext.parser();

        String fieldName = null;
        ShapeRelation shapeRelation = ShapeRelation.INTERSECTS;
        String strategyName = null;
        ShapeBuilder shape = null;
        boolean cache = false;
        CacheKeyFilter.Key cacheKey = null;
        String filterName = null;

        String id = null;
View Full Code Here

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

        XContentParser parser = parseContext.parser();

        String fieldName = null;
        ShapeRelation shapeRelation = ShapeRelation.INTERSECTS;
        String strategyName = null;
        ShapeBuilder shape = null;

        String id = null;
        String type = null;
        String index = DEFAULTS.INDEX_NAME;
        String shapePath = DEFAULTS.SHAPE_FIELD_NAME;
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.