Package org.apache.tika.pipes.emitter.es
Class ESEmitterFactory
java.lang.Object
org.apache.tika.pipes.emitter.es.ESEmitterFactory
- All Implemented Interfaces:
EmitterFactory,TikaExtensionFactory<Emitter>,org.pf4j.ExtensionPoint
Factory for creating ES emitters.
Example JSON configuration:
"emitters": {
"es-emitter": {
"my-es-emitter": {
"esUrl": "https://localhost:9200/my-index",
"idField": "id",
"apiKey": "base64-encoded-id:api_key",
"attachmentStrategy": "PARENT_CHILD",
"updateStrategy": "UPSERT",
"embeddedFileFieldName": "embedded"
}
}
}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ESEmitterFactory
public ESEmitterFactory()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTikaExtensionFactory<Emitter>- Returns:
- name of the extension in the config file
-
buildExtension
public Emitter buildExtension(ExtensionConfig extensionConfig) throws IOException, TikaConfigException - Specified by:
buildExtensionin interfaceTikaExtensionFactory<Emitter>- Throws:
IOExceptionTikaConfigException
-