public class SolrEmitter
extends org.apache.tika.pipes.emitter.AbstractEmitter
implements org.apache.tika.config.Initializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SolrEmitter.AttachmentStrategy |
static class |
SolrEmitter.UpdateStrategy |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_EMBEDDED_FILE_FIELD_NAME |
| Constructor and Description |
|---|
SolrEmitter() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkInitialization(org.apache.tika.config.InitializableProblemHandler problemHandler) |
void |
emit(List<? extends org.apache.tika.pipes.emitter.EmitData> batch) |
void |
emit(String emitKey,
List<org.apache.tika.metadata.Metadata> metadataList) |
int |
getCommitWithin() |
void |
initialize(Map<String,org.apache.tika.config.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 |
setEmbeddedFileFieldName(String embeddedFileFieldName)
If using the
SolrEmitter.AttachmentStrategy.PARENT_CHILD, this is the field name
used to store the child documents. |
void |
setIdField(String idField)
Specify the field in the first Metadata that should be
used as the id field for the document.
|
void |
setPassword(String password) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setSocketTimeout(int socketTimeout) |
void |
setSolrCollection(String solrCollection) |
void |
setSolrUrls(List<String> solrUrls) |
void |
setSolrZkChroot(String solrZkChroot) |
void |
setSolrZkHosts(List<String> solrZkHosts) |
void |
setUpdateStrategy(String updateStrategy) |
void |
setUserName(String userName) |
public static String DEFAULT_EMBEDDED_FILE_FIELD_NAME
public SolrEmitter()
throws org.apache.tika.exception.TikaConfigException
org.apache.tika.exception.TikaConfigExceptionpublic void emit(String emitKey, List<org.apache.tika.metadata.Metadata> metadataList) throws IOException, org.apache.tika.pipes.emitter.TikaEmitterException
emit in interface org.apache.tika.pipes.emitter.EmitterIOExceptionorg.apache.tika.pipes.emitter.TikaEmitterExceptionpublic void emit(List<? extends org.apache.tika.pipes.emitter.EmitData> batch) throws IOException, org.apache.tika.pipes.emitter.TikaEmitterException
emit in interface org.apache.tika.pipes.emitter.Emitteremit in class org.apache.tika.pipes.emitter.AbstractEmitterIOExceptionorg.apache.tika.pipes.emitter.TikaEmitterException@Field public void setAttachmentStrategy(String attachmentStrategy)
@Field public void setUpdateStrategy(String updateStrategy)
@Field public void setConnectionTimeout(int connectionTimeout)
@Field public void setSocketTimeout(int socketTimeout)
public int getCommitWithin()
@Field public void setCommitWithin(int commitWithin)
@Field public void setIdField(String idField)
idField - @Field public void setSolrCollection(String solrCollection)
@Field public void setSolrZkChroot(String solrZkChroot)
@Field public void setUserName(String userName)
@Field public void setPassword(String password)
@Field public void setAuthScheme(String authScheme)
@Field public void setProxyHost(String proxyHost)
@Field public void setProxyPort(int proxyPort)
@Field public void setEmbeddedFileFieldName(String embeddedFileFieldName)
SolrEmitter.AttachmentStrategy.PARENT_CHILD, this is the field name
used to store the child documents. Note that we artificially flatten all embedded
documents, no matter how nested in the container document, into direct children
of the root document.embeddedFileFieldName - public void initialize(Map<String,org.apache.tika.config.Param> params) throws org.apache.tika.exception.TikaConfigException
initialize in interface org.apache.tika.config.Initializableorg.apache.tika.exception.TikaConfigExceptionpublic void checkInitialization(org.apache.tika.config.InitializableProblemHandler problemHandler)
throws org.apache.tika.exception.TikaConfigException
checkInitialization in interface org.apache.tika.config.Initializableorg.apache.tika.exception.TikaConfigExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.