Possible If no records found in search then display top 10 records?

instantsearch

#1

When search some keyword and there was no records in that case can we display the 10 records which is top search?


#2

You have two possibilities here:

1/ Try to still get results from the query: https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/?language=javascript#advanced-settings-to-avoid-insufficient-results

2/ Or, once you receive empty results, try to do an empty search without the query. The way to do so depends on what you use for frontend search and will require custom coding.


#4

I think the “top products if none found” feature would be super useful too