Class MarcElasticsearchClient
- java.lang.Object
-
- de.gwdg.metadataqa.marc.datastore.MarcElasticsearchClient
-
public class MarcElasticsearchClient extends Object
- Author:
- Péter Király
-
-
Constructor Summary
Constructors Constructor Description MarcElasticsearchClient()MarcElasticsearchClient(String host)MarcElasticsearchClient(String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.client.ResponsedeleteTweet(int id)intgetNumberOfTweets()org.elasticsearch.client.ResponseindexDuplumKey(String id, Map<String,Object> document)org.elasticsearch.client.ResponseindexTweet(int id, String user, String message)org.apache.http.HttpEntityrootRequest()
-
-
-
Method Detail
-
rootRequest
public org.apache.http.HttpEntity rootRequest() throws IOException- Throws:
IOException
-
indexDuplumKey
public org.elasticsearch.client.Response indexDuplumKey(String id, Map<String,Object> document) throws IOException
- Throws:
IOException
-
indexTweet
public org.elasticsearch.client.Response indexTweet(int id, String user, String message) throws IOException- Throws:
IOException
-
deleteTweet
public org.elasticsearch.client.Response deleteTweet(int id) throws IOException- Throws:
IOException
-
getNumberOfTweets
public int getNumberOfTweets() throws IOException- Throws:
IOException
-
-