我嘗試在 vue.js 中使用 elasticsearch 客戶端。但是 elasticseach 需要在 node.js 環境中。Vue.js 沒有 node.js 環境。還有其他解決方案嗎? https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html
uj5u.com熱心網友回復:
您必須創建一個休息 api 一個服務器站點。這個 Node.js porgramm 將創建到 elasticsearch 服務器的連接。
您的 vue.js 客戶端通過 ajax 呼叫連接您的 Rest api。你 Node.js 程式呼叫 elasticesearch。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/393201.html
上一篇:如何在aspnetcorewebAPI上正確地將串列轉換為IQueryable
下一篇:在地理搜索結果中包括距離
