Class GeoGazetteerClient

java.lang.Object
org.apache.tika.parser.geo.topic.gazetteer.GeoGazetteerClient

@Deprecated(since="2026-04-30") public class GeoGazetteerClient extends Object
Deprecated.
  • Constructor Details

    • GeoGazetteerClient

      public GeoGazetteerClient(String url)
      Deprecated.
      Pass URL on which lucene-geo-gazetteer is available - eg. http://localhost:8765/api/search
      Parameters:
      url -
    • GeoGazetteerClient

      public GeoGazetteerClient(GeoParserConfig config)
      Deprecated.
  • Method Details

    • getLocations

      public Map<String,List<Location>> getLocations(List<String> locations)
      Deprecated.
      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
    • checkAvail

      public boolean checkAvail()
      Deprecated.
      Ping lucene-geo-gazetteer API
      Returns:
      true if API is available else returns false