Home > Enterprise >  elasticsearch client cant be use in vue.js, because of no nodejs environment
elasticsearch client cant be use in vue.js, because of no nodejs environment

Time:12-26

I tried to use elasticsearch client in vue.js. But elasticseach needs to be in a node.js environment. Vue.js doesn't have node.js environment. Is there any other solution? https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html

CodePudding user response:

You have to create a rest api an server site. This Node.js porgramm will create the Connection to elasticsearch Server.

Your vue.js Client Connect you Rest api by ajax call. You Node.js Programm call elasticesearch.

  • Related