public static GeoParser getDefault ( String pathToLuceneIndex , int maxHitDepth , int maxContentWindow , boolean fuzzy ) throws ClavinException { try { // instantiate default LocationExtractor LocationExtractor extractor = new ApacheExtractor ( ) ; return getDefault ( pathToLuceneIndex , extractor , maxHitDepth , maxContentWindow , fuzzy ) ; } catch ( IOException ioe ) { throw new ClavinException ( "Error creating ApacheExtractor" , ioe ) ; } }
Get a GeoParser with defined values for maxHitDepth and maxContentWindow and fuzzy matching explicitly turned on or off .