0

I'm trying to configure Elasticsearch on the AWS server. I only have SSH access and have installed Elasticsearch manually by CLI. now I have to configure Elasticsearch on the Magento admin side but it gives me "class not found error" this is the file setting

/etc/elasticsearch/elasticsearch.yml

enter image description here

and when I run this command I get this output

curl -X GET "localhost:9200"

{
  "name" : "some ip",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "some uid",
  "version" : {
    "number" : "some number",
    "build_flavor" : "default",
    "build_type" : "deb",
    
  },
  "tagline" : "You Know, for Search"
}

I have removed and changed some info for security reasons.

this is the error I'm getting on admin side enter image description here

1 Answer 1

1

uncomment the

http.port

line and restart your apache server

sudo service apachae2 restart

refresh the admin page.

save the config, clear config cache and test connection

see the screenshort below:

enter image description here

for admin config :

->go to store -> configuration -> catalog -> catalog -> Catalog Search, find elasticsearch config for Server Port should be 9200, Search Engine should be elasticsearch, Elasticsearch Server Hostname should be http://127.0.0.1

2
  • How do I find the hostname and port for admin configuration? Commented Aug 23 at 9:19
  • check the updated answer Commented Aug 23 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.