[英]How can i Fix The "--search-engine" option does not exist in Magento 2
當我嘗試在本地主機上設置 magento 時遇到問題。 我已經激活了 elasticsearch,我的 elasticsearch 版本是 7.6.0。 那么,問題是什么,我該如何解決。
“--search-engine”選項不存在
請使用數據庫檢查彈性搜索主機名,或者可以使用以下命令設置它。
php bin/magento config:set catalog/search/engine elasticsearch7
php bin/magento 配置:setcatalog/search/elasticsearch7_server_hostname <elasticsearch_hostname>
php bin/magento 配置:設置目錄/搜索/elasticsearch7_server_port <elasticsearch_port>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.