Read Magento 2 setup Elasticsearch for more information.

Using Elasticsearch as your catalog search solution provides the following benefits:

  • Quick and advanced searches on products in the catalog
  • Support for multiple languages
  • Support for stop words and synonyms
  • Indexing does not impact customers until reindex is completed
magento 2 setup elasticsearch
Elasticsearch returns search results based on the last generated index until the new one has been completely indexed so there is no disruption to customers.

  • Accurate, performant, and scalable
  • Works well out of the box
  • Easy to horizontally scale
  • Supports real-time data and analysis
  • Can be used as a document-oriented data store
  • Applications in framework beyond search, including reporting, personalization, performance, and storage

Install Elasticsearch 6.x

  1. Log in to your Magento server as a user with root privileges.
  2. CentOS: Install Elasticsearch 6.x using the Elasticsearch RPM documentation
  3. Ubuntu: Install Elasticsearch 6.x using the Elasticsearch Ubuntu documentation
  4. Optionally, configure Elasticsearch as needed. See Configuring Elasticsearch for more information.
  5. If not already running, start Elasticsearch:
    sudo service elasticsearch start
    Verify that Elasticsearch is working by entering the following command on the server on which it is running:
    curl -XGET ‘<host>:9200/_cat/health?v&pretty’

You may also like