Your search products doesn't exist

I need to show your searched products not found if a product doesn't exist in database .Here , am using Elasticsearch for searching , if I type a product not in database it will show some other words matched product but I don't need that instead I want to show that your searched products is not found. Also , I need to show recent search of a user , can I do with Elasticsearch.

When you use term query with keyword family, you will get only exact matchs.

For second question, you may store queries using Slow log with setting the threshold to 0s.