Package org.craftercms.search.opensearch
Interface MetadataExtractor<T>
- Type Parameters:
T
- the type of object that provides the metadata
- All Known Implementing Classes:
TikaMetadataExtractor
public interface MetadataExtractor<T>
Defines the basic operation to process binary files and produce relevant metadata
- Author:
- joseross
-
Method Summary
-
Method Details
-
extract
void extract(org.springframework.core.io.Resource resource, T metadata, Map<String, Object> properties) Takes relevant metadata from the source object to the properties parameter- Parameters:
resource
- the original file containing the metadata (in case any extra operation is needed)metadata
- the object that provides the metadataproperties
- the properties that will be indexed
-