public class OpenSearchEmitter extends AbstractEmitter implements Initializable
Modifier and Type | Class and Description |
---|---|
static class |
OpenSearchEmitter.AttachmentStrategy |
Constructor and Description |
---|
OpenSearchEmitter() |
Modifier and Type | Method and Description |
---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
void |
emit(String emitKey,
List<Metadata> metadataList) |
int |
getCommitWithin() |
String |
getContentField() |
void |
initialize(Map<String,Param> params) |
void |
setAttachmentStrategy(String attachmentStrategy)
Options: SKIP, CONCATENATE_CONTENT, PARENT_CHILD.
|
void |
setAuthScheme(String authScheme) |
void |
setCommitWithin(int commitWithin) |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setContentField(String contentField)
This is the field _after_ metadata mappings have been applied
that contains the "content" for each metadata object.
|
void |
setIdField(String idField)
Specify the field in the first Metadata that should be
used as the id field for the document.
|
void |
setOpenSearchUrl(String openSearchUrl) |
void |
setPassword(String password) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setSocketTimeout(int socketTimeout) |
void |
setUserName(String userName) |
emit, getName, setName
public OpenSearchEmitter() throws TikaConfigException
TikaConfigException
public void emit(String emitKey, List<Metadata> metadataList) throws IOException, TikaEmitterException
emit
in interface Emitter
IOException
TikaEmitterException
@Field public void setAttachmentStrategy(String attachmentStrategy)
@Field public void setConnectionTimeout(int connectionTimeout)
@Field public void setSocketTimeout(int socketTimeout)
public String getContentField()
@Field public void setContentField(String contentField)
This is the field that is used if attachmentStrategy
is OpenSearchEmitter.AttachmentStrategy.CONCATENATE_CONTENT
.
contentField
- public int getCommitWithin()
@Field public void setCommitWithin(int commitWithin)
@Field public void setIdField(String idField)
idField
- @Field public void setProxyPort(int proxyPort)
public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- params to use for initializationTikaConfigException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.