How can I configure Magento 2.x to use Elasticsearch on a starter platform ?

If you just import your database and you want to configure your stack to use Elasticsearch (locally or on an AWS Cluster), you'll have to:

Download and extract Magerun2: https://github.com/netz98/n98-magerun2

Use these command lines to setup the elasticsearch connection:

./n98-magerun2.phar config:env:set catalog/search/elasticsearch7_server_hostname localhost
./n98-magerun2.phar config:env:set catalog/search/elasticsearch7_enable_auth 0
./n98-magerun2.phar config:env:set catalog/search/elasticsearch7_server_port 9200

Lines in red will only be needed if you use a secured connection.

Was this article helpful?
0 out of 0 found this helpful