Installed details: Magento 2.4.2, Elasticsearch 7.6.0, Ububtu 20.04.
Elasticsearch is working on localhost:9200.
{
"name" : "magento",
"cluster_name" : "my-application",
"cluster_uuid" : "bp8QVARQTxavGac9XSUadw",
"version" : {
"number" : "7.6.0",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "7f634e9f44834fbc12724506cc1da681b0c3b1e3",
"build_date" : "2020-02-06T00:09:00.449973Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
I made the necessary configurations in the Stores/Configurations/Catalog/Catalog/Catalog Search.
then php bin/magento cache:clean
and bin/magento indexer:reindex
, then tried to search.
But the problem is that the search does not work on the Luma page:
I checked http://127.0.0.1:9200/_cat/indices?v:
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open magento2_es_demo5x1_product_1_v2 W4E0HOGtTd6Y4LCBWvo3-w 1 1 0 0 283b 283b
yellow open magento2_product_1_v9 YerIXZhrSii_b5wxarJ6hA 1 1 0 0 283b 283b
checked http://127.0.0.1:9200/magento2_product_1_v9/_search?pretty=true:
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 0,
"relation" : "eq"
},
"max_score" : null,
"hits" : [ ]
}
}
(I can provide the necessary details).
Just started learning Magento and ElasticSearch, so I really ask the community to tell me in detail what to do to make ElasticSearch work in my Magento project.