public class OpenSearchClient extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.client.HttpClient |
httpClient |
protected String |
openSearchUrl |
Modifier | Constructor and Description |
---|---|
protected |
OpenSearchClient(String openSearchUrl,
org.apache.http.client.HttpClient httpClient,
OpenSearchEmitter.AttachmentStrategy attachmentStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
addDocument(String emitKey,
List<Metadata> metadataList) |
JsonResponse |
postJson(String url,
String json) |
protected final String openSearchUrl
protected final org.apache.http.client.HttpClient httpClient
protected OpenSearchClient(String openSearchUrl, org.apache.http.client.HttpClient httpClient, OpenSearchEmitter.AttachmentStrategy attachmentStrategy)
public void addDocument(String emitKey, List<Metadata> metadataList) throws IOException, TikaClientException
IOException
TikaClientException
public JsonResponse postJson(String url, String json) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.