Class OpenSearchClient
- java.lang.Object
- 
- org.apache.tika.pipes.reporters.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)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidemitDocument(String emitKey, String routing, Metadata metadata)JsonResponsepostJson(String url, String json)voidwriteBulkRequest(String id, String routing, StringWriter writer)voidwriteDoc(Metadata metadata, StringWriter writer)
 
- 
- 
- 
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) 
 
- 
 - 
Method Detail- 
emitDocumentpublic void emitDocument(String emitKey, String routing, Metadata metadata) throws IOException, TikaClientException - Throws:
- IOException
- TikaClientException
 
 - 
postJsonpublic JsonResponse postJson(String url, String json) throws IOException - Throws:
- IOException
 
 - 
writeDocpublic void writeDoc(Metadata metadata, StringWriter writer) throws IOException - Throws:
- IOException
 
 - 
writeBulkRequestpublic void writeBulkRequest(String id, String routing, StringWriter writer) throws IOException - Throws:
- IOException
 
 
- 
 
-