Class GeoIPIndexingFilter

java.lang.Object
org.apache.nutch.indexer.geoip.GeoIPIndexingFilter
All Implemented Interfaces:
Closeable, AutoCloseable, Configurable, IndexingFilter, Pluggable

public class GeoIPIndexingFilter extends Object implements IndexingFilter, Closeable

This plugin implements an indexing filter which takes advantage of the GeoIP2-java API.

The third party library distribution provides an API for the GeoIP2 Precision web services, GeoLite2 (free) and databases.

Multiple databases can be configured simultaneously. Configure each database type you want to use by setting its corresponding property:

  • index.geoip.db.anonymous - Anonymous IP database
  • index.geoip.db.asn - ASN database
  • index.geoip.db.city - City database
  • index.geoip.db.connection - Connection Type database
  • index.geoip.db.country - Country database
  • index.geoip.db.domain - Domain database
  • index.geoip.db.isp - ISP database

Alternatively, use the MaxMind Insights web service by setting index.geoip.insights.userid and index.geoip.insights.licensekey.

  • Constructor Details

    • GeoIPIndexingFilter

      public GeoIPIndexingFilter()
      Default constructor for this plugin
  • Method Details