I want to display custom records when all indices is empty then what I have to do?
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.