For data ingestion to ES I have used transport client API previously. It was working fine on local cluster but when I tried pushing it to amazon elasticsearch instance it was having problems. I searched for the issue and found that it is related to transport port. Most of the people were having that issue and recommended to use RestClient api.
I have couple questions in my mind regarding this:
- What is the best practice ? Using transport client or RestClient which one is preferable.
- I tried RestClient and it worked for local as well as my amazon elasticsearch instance. Creating request object using NStringEntity and using performRequest method I ingested my data to amazon ES. When i looked for API's for index creation, existance of the index etc I saw methods which are either not available for RestClient and are available for Transport client, So the question is are there any such API's available for RestClient as well? If not what should be done so as to check for available indexes and creating new one so I have to switch for Transport API?