Package com.bericotech.clavin.resolver

Examples of com.bericotech.clavin.resolver.LuceneLocationResolver


        if (maxContextWindow < 1) {
            LOGGER.debug("Found %s of %d. Using default: %d", CLAVIN_MAX_CONTEXT_WINDOW, maxContextWindow, DEFAULT_MAX_CONTENT_WINDOW);
            maxContextWindow = DEFAULT_MAX_CONTENT_WINDOW;
        }

        resolver = new LuceneLocationResolver(indexDirectory, maxHitDepth, maxContextWindow);
    }
View Full Code Here


    public static GeoParser getDefault(
            String pathToLuceneIndex, LocationExtractor extractor, int maxHitDepth, int maxContentWindow, boolean fuzzy)
                    throws IOException, ParseException{
       
        // instantiate new LuceneLocationResolver with supplied parameters
        LocationResolver resolver = new LuceneLocationResolver(
                new File(pathToLuceneIndex), maxHitDepth, maxContentWindow);
       
        return new GeoParser(extractor, resolver, fuzzy);
    }
View Full Code Here

TOP

Related Classes of com.bericotech.clavin.resolver.LuceneLocationResolver

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.