lundi 29 juin 2015

Check if the index exists or not Elasticsearch


I want to check in elasticsearch if the index exists or not. If it not exists it should create the index and do other functionality. I try to find out a solution for that, but did not find any perfect solution for that. Can anyone have any solution to solve this problem.

I am using Elasticsearch library.

**$client = new Elasticsearch\Client();**


Aucun commentaire:

Enregistrer un commentaire