Skip to content
Advertisement

Tag: indexing

Skipping an index in foreach loop

I’ve seen options for only hitting certain numbers in a foreach (if i < 25, etc) but I’m wondering how to best skip a string index completely I have a loop that works perfectly and I don’t want to change what it’s doing, I just want to omit one row that has the index of ’employee’ I’ve tried the below

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. Answer As per

Advertisement