Class OpenSearchClient
- java.lang.Object
- 
- org.apache.tika.pipes.emitter.opensearch.OpenSearchClient
 
- 
 public class OpenSearchClient extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.apache.http.client.HttpClienthttpClientprotected StringopenSearchUrl
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedOpenSearchClient(String openSearchUrl, org.apache.http.client.HttpClient httpClient, OpenSearchEmitter.AttachmentStrategy attachmentStrategy, OpenSearchEmitter.UpdateStrategy updateStrategy, String embeddedFileFieldName)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidemitDocument(String emitKey, List<Metadata> metadataList)voidemitDocuments(List<? extends EmitData> emitData)protected static StringmetadataToJsonContainerInsert(Metadata metadata, OpenSearchEmitter.AttachmentStrategy attachmentStrategy)protected static StringmetadataToJsonEmbeddedInsert(Metadata metadata, OpenSearchEmitter.AttachmentStrategy attachmentStrategy, String emitKey, String embeddedFileFieldName)JsonResponsepostJson(String url, String json)
 
- 
- 
- 
Field Detail- 
openSearchUrlprotected final String openSearchUrl 
 - 
httpClientprotected final org.apache.http.client.HttpClient httpClient 
 
- 
 - 
Constructor Detail- 
OpenSearchClientprotected OpenSearchClient(String openSearchUrl, org.apache.http.client.HttpClient httpClient, OpenSearchEmitter.AttachmentStrategy attachmentStrategy, OpenSearchEmitter.UpdateStrategy updateStrategy, String embeddedFileFieldName) 
 
- 
 - 
Method Detail- 
emitDocumentspublic void emitDocuments(List<? extends EmitData> emitData) throws IOException, TikaClientException - Throws:
- IOException
- TikaClientException
 
 - 
emitDocumentpublic void emitDocument(String emitKey, List<Metadata> metadataList) throws IOException, TikaClientException - Throws:
- IOException
- TikaClientException
 
 - 
metadataToJsonContainerInsertprotected static String metadataToJsonContainerInsert(Metadata metadata, OpenSearchEmitter.AttachmentStrategy attachmentStrategy) throws IOException - Throws:
- IOException
 
 - 
metadataToJsonEmbeddedInsertprotected static String metadataToJsonEmbeddedInsert(Metadata metadata, OpenSearchEmitter.AttachmentStrategy attachmentStrategy, String emitKey, String embeddedFileFieldName) throws IOException - Throws:
- IOException
 
 - 
postJsonpublic JsonResponse postJson(String url, String json) throws IOException - Throws:
- IOException
 
 
- 
 
-