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

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

You have two possibilities here:

1/ Try to still get results from the query: Empty or insufficient results | Algolia

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.

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