Package org.apache.lucene.spatial.tier

Examples of org.apache.lucene.spatial.tier.CartesianPolyFilterBuilder


        String tierPrefix = key + "`tier_";

        jlog.finer("lat:" + lat + ", lng:" + lng + ", miles:" + miles
            + ", prefix: " + tierPrefix);

        CartesianPolyFilterBuilder cpf = new CartesianPolyFilterBuilder(
            tierPrefix, DocumentTranslator.MIN_TIER,
            DocumentTranslator.MAX_TIER);

        Filter cartesianFilter = cpf.getBoundingArea(lat, lng, miles);
        DistanceFilter filter = new LatLongDistanceFilter(
            cartesianFilter, lat, lng, miles, key + "`lat", key
                + "`lng");

        ValueSource valSrc = new DistanceValueSource(filter);
View Full Code Here

TOP

Related Classes of org.apache.lucene.spatial.tier.CartesianPolyFilterBuilder

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.