How to identify all the indices is empty?

I want to display custom records when all indices is empty then what I have to do?

Hi @chirag.prajapati_1,

Could you give us a bit more context about your use case? Which language are you using? Where those custom records come from? Algolia? Hard coded?


For example I have 3 indices like product,category and page.
When I search data and there is no result found from category ,product and page indices then I have to display Top 10 popular search product.
I am using laravel and also using autocomplete.