Elasticsearch® in Magento
Magento 2 search is now based on Elasticsearch server (from Magento 2.3 and from 2.1 for the Enterprise Edition).
What is Elasticsearch®?
Elasticsearch is a real-time distributed search and analytics engine which allows you to explore your data very quickly. It is used for full-text search, structured search, analytics, and all three in combination.
And it packages up all this functionality into a standalone server that your application can talk to via a simple RESTful API, using a web client from your favorite programming language, or even from the command line.
You can find more information on the product here:
How does the Elasticsearch® module work?
From Magento 2, you can select the search engine you want to use in your catalog from:
StoresSettingsConfiguration Catalog CatalogCatalog Search
You have the choice between:
The data is indexed in the database.
The data is indexed in the Elasticsearch engine.
The Elasticsearch option is faster. It slightly enhances the relevancy of the results and allows you to propose suggestions for misspelled words.
According to the search engine you've selected, the Catalog Search indexer will be indexed from:
The Elasticsearch Browser extension will allow you to quickly check which data is indexed and how.
You can considerably improve your Magento 2 search results with Elasticsearch Autocomplete thanks to an ultra-fast search tool and a user-friendly autocomplete. You'll also be able to display relevant results on products, CMS pages, categories as well as search suggestions. You can also upgrade to the complete Elasticsearch Suite for an ultimate experience.
How to use Elasticsearch Browser in Magento 2
STEP 1: Install the Elasticsearch Browser extension
To install the Elasticsearch Browser extension in your Magento 2 backoffice:
Make sure the Elasticsearch server is correctly installed and running.
STEP 2: Use the Elasticsearch Browser extension
If you're using the Elasticsearch native module from Magento, the Elasticsearch Browser extension from Wyomind will help you to see all data that are indexed.
Enable Log / Debug
Elasticsearch Browser allows you to receive a backend notification when the server fails. You can activate that option from:
StoresSettingsConfiguration Wyomind Elasticsearch Browser
A notification should be displayed when the server fails if that option is on Yes and the search engine selected is Elasticsearch from:
StoresSettingsConfiguration cataloG catalog
Browse your data
With Elasticsearch Browser, you can see what data is indexed. For this, go in:
SystemWyomind ElasticSearch Browser Browse Data
There, you have the possibility to reload your data easily by clicking on Reload.
In the case where you're having several store view, note that the indexed data can be filtered by stores.
Feel free to reduce the number of columns that are displayed by unticking the data that you feel unnecessary.
For each line, you have 2 possible actions. You can:
- Check the Raw data
- Edit the line