Class GeoPointMetadataFilter

All Implemented Interfaces:
Closeable, Serializable, AutoCloseable

public class GeoPointMetadataFilter extends MetadataFilterBase
If Metadata contains a TikaCoreProperties.LATITUDE and a TikaCoreProperties.LONGITUDE, this filter concatenates those with a comma in the order LATITUDE,LONGITUDE. If you need any other mappings, please open a ticket on our JIRA.
See Also:
  • Constructor Details

    • GeoPointMetadataFilter

      public GeoPointMetadataFilter()
    • GeoPointMetadataFilter

      public GeoPointMetadataFilter(GeoPointMetadataFilter.Config config)
      Constructor with explicit Config object.
      Parameters:
      config - the configuration
    • GeoPointMetadataFilter

      public GeoPointMetadataFilter(JsonConfig jsonConfig)
      Constructor for JSON configuration. Requires Jackson on the classpath.
      Parameters:
      jsonConfig - JSON configuration
  • Method Details

    • setGeoPointFieldName

      public void setGeoPointFieldName(String geoPointFieldName)
      Set the field for the concatenated LATITUDE,LONGITUDE string. The default if &dquot;location&dquot;
      Parameters:
      geoPointFieldName - field name to use for the geopoint field
    • getGeoPointFieldName

      public String getGeoPointFieldName()
    • filter

      protected void filter(Metadata metadata)
      Specified by:
      filter in class MetadataFilterBase