Before am indexing the documents i want to check whether my index is empty or not. Which means, i just want to get the count of all the docments. If it returns 0 i want to proceed some action else i want to proceed some other action.
Am using Elastic Search 6.2.3 version with RestHighLevelClient.