skip to Main Content

I have a problem when i try to setup magento on my localhost. I already active the elasticsearch and my elasticsearch version is 7.6.0. So, what is the problem and how can i fix it.

The "–search-engine" option does not exist

1

2

Answers


  1. Please check the elastic search hostname using a database or may set it using the below command.

    php bin/magento config:set catalog/search/engine elasticsearch7

    php bin/magento config:setcatalog/search/elasticsearch7_server_hostname <elasticsearch_hostname>

    php bin/magento config:set catalog/search/elasticsearch7_server_port <elasticsearch_port>

    Login or Signup to reply.
  2. Just remove this tags from command:

    --search-engine=elasticsearch --elasticsearch-host=localhost --elasticsearch-port=9200
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search