Class GeoGazetteerClient
- java.lang.Object
- 
- org.apache.tika.parser.geo.topic.gazetteer.GeoGazetteerClient
 
- 
 public class GeoGazetteerClient extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description GeoGazetteerClient(String url)Pass URL on which lucene-geo-gazetteer is available - eg.GeoGazetteerClient(GeoParserConfig config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckAvail()Ping lucene-geo-gazetteer APIMap<String,List<Location>>getLocations(List<String> locations)Calls API of lucene-geo-gazetteer to search location name in gazetteer.
 
- 
- 
- 
Constructor Detail- 
GeoGazetteerClientpublic GeoGazetteerClient(String url) Pass URL on which lucene-geo-gazetteer is available - eg. http://localhost:8765/api/search- Parameters:
- url-
 
 - 
GeoGazetteerClientpublic GeoGazetteerClient(GeoParserConfig config) 
 
- 
 - 
Method Detail- 
getLocationspublic Map<String,List<Location>> getLocations(List<String> locations) Calls API of lucene-geo-gazetteer to search location name in gazetteer.- Parameters:
- locations- List of locations to be searched in gazetteer
- Returns:
- Map of input location strings to gazetteer locations
 
 - 
checkAvailpublic boolean checkAvail() Ping lucene-geo-gazetteer API- Returns:
- true if API is available else returns false
 
 
- 
 
-