Package org.apache.tika.pipes.emitter.es
Class ESEmitter
java.lang.Object
org.apache.tika.plugins.AbstractTikaExtension
org.apache.tika.pipes.api.emitter.AbstractEmitter
org.apache.tika.pipes.emitter.es.ESEmitter
- All Implemented Interfaces:
Emitter,TikaExtension
Emitter that sends documents to an ES-compatible REST API.
This emitter does not depend on the ES Java client
(which changed to a non-ASL license). It uses plain HTTP via
Apache HttpClient to call the _bulk endpoint directly.
Supports:
- API key authentication (
Authorization: ApiKey <base64>) - Basic authentication (username/password via httpClientConfig)
- OVERWRITE and UPSERT update strategies
- SEPARATE_DOCUMENTS and PARENT_CHILD attachment strategies
-
Field Summary
FieldsFields inherited from class org.apache.tika.plugins.AbstractTikaExtension
pluginConfig -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tika.plugins.AbstractTikaExtension
getExtensionConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tika.plugins.TikaExtension
getExtensionConfig
-
Field Details
-
DEFAULT_EMBEDDED_FILE_FIELD_NAME
- See Also:
-
-
Constructor Details
-
ESEmitter
public ESEmitter(ExtensionConfig pluginConfig, ESEmitterConfig config) throws IOException, TikaConfigException - Throws:
IOExceptionTikaConfigException
-
-
Method Details
-
build
- Throws:
TikaConfigExceptionIOException
-
emit
- Specified by:
emitin interfaceEmitter- Overrides:
emitin classAbstractEmitter- Throws:
IOException
-
emit
public void emit(String emitKey, List<Metadata> metadataList, ParseContext parseContext) throws IOException - Throws:
IOException
-