Package org.apache.tika.metadata.filter
Class GeoPointMetadataFilter
java.lang.Object
org.apache.tika.metadata.filter.MetadataFilter
org.apache.tika.metadata.filter.MetadataFilterBase
org.apache.tika.metadata.filter.GeoPointMetadataFilter
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration class for JSON deserialization. -
Constructor Summary
ConstructorsConstructorDescriptionGeoPointMetadataFilter(JsonConfig jsonConfig) Constructor for JSON configuration.Constructor with explicit Config object. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidsetGeoPointFieldName(String geoPointFieldName) Set the field for the concatenated LATITUDE,LONGITUDE string.Methods inherited from class org.apache.tika.metadata.filter.MetadataFilterBase
doFilterMethods inherited from class org.apache.tika.metadata.filter.MetadataFilter
close, filter, filter
-
Constructor Details
-
GeoPointMetadataFilter
public GeoPointMetadataFilter() -
GeoPointMetadataFilter
Constructor with explicit Config object.- Parameters:
config- the configuration
-
GeoPointMetadataFilter
Constructor for JSON configuration. Requires Jackson on the classpath.- Parameters:
jsonConfig- JSON configuration
-
-
Method Details
-
setGeoPointFieldName
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
-
filter
- Specified by:
filterin classMetadataFilterBase
-