Examples of GeoDistanceFacetBuilder


Examples of org.elasticsearch.search.facet.geodistance.GeoDistanceFacetBuilder

    public static RangeScriptFacetBuilder rangeScriptFacet(String facetName) {
        return new RangeScriptFacetBuilder(facetName);
    }

    public static GeoDistanceFacetBuilder geoDistanceFacet(String facetName) {
        return new GeoDistanceFacetBuilder(facetName);
    }
View Full Code Here

Examples of org.elasticsearch.search.facet.geodistance.GeoDistanceFacetBuilder

     * <br>See <a href="http://www.elasticsearch.org/guide/reference/api/search/facets/geo-distance-facet.html">documentation</a>
     * TODO Create real test
     */
    @Test @Ignore
    public void geoDistanceFacet() throws Exception {
        GeoDistanceFacetBuilder facet = FacetBuilders.geoDistanceFacet("f")
                .field("location")
                .point(40, -70)
                .addUnboundedFrom(10)
                .addRange(10, 20)
                .addRange(20, 100)
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.