The search queries entered by customers into the Magento 2 store's search box are stored in the search_query table Magento 2.
Based on what past customers have searched, these search terms are utilized to display search suggestions for potential consumers. Additionally, the dashboard of the admin panel displays the most common search phrases so that the admin may assess and comprehend the popularity and demand of the products.
If the search query table is cleaned entirely, until new entries are added to the table, no search suggestions will be given to new clients. Simply truncate it if you're using a custom search solution.
For more information, Visit: https://meetanshi.com/blog/search_query-table-in-magento-2/