Class OpenSearchClient
java.lang.Object
org.apache.tika.pipes.reporters.opensearch.OpenSearchClient
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.http.client.HttpClient
protected final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
OpenSearchClient
(String openSearchUrl, org.apache.http.client.HttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionvoid
emitDocument
(String emitKey, String routing, Metadata metadata) void
writeBulkRequest
(String id, String routing, StringWriter writer) void
writeDoc
(Metadata metadata, StringWriter writer)
-
Field Details
-
openSearchUrl
-
httpClient
protected final org.apache.http.client.HttpClient httpClient
-
-
Constructor Details
-
OpenSearchClient
-
-
Method Details
-
emitDocument
public void emitDocument(String emitKey, String routing, Metadata metadata) throws IOException, TikaClientException - Throws:
IOException
TikaClientException
-
postJson
- Throws:
IOException
-
writeDoc
- Throws:
IOException
-
writeBulkRequest
- Throws:
IOException
-