I have a web site that frontend developed by vue.js(SPA) and backend developed by node.js. I want to use Elasticsearch in the search box at main page. Should I call search query from client to elasticsearch or client to nodejs backend and then to elasticsearch?
What is the best practice? What are the pros and cons?