How to intergrate and work with django and elasticsearch?
So, I recently encountered with elasticsearch and find it really helpful to integrate with django for faster api response.
But, did not able to find a good installation documentation of elasticsearch with django with step by step installation of elasticsearch and then how to integrate it with django.
I tried to pull the elasticsearch image and run the container on -p 4200:4300 but it keeps getting error. still manages to run but again getting Active licence error. added in settings.py
ELASTICSEARCH_DSL = {
'default': {
'hosts': ['http://localhost:9300'],
'http_auth': ('elastic', 'password'),
},
}
Getting Connection Error.
- what should be username and password when first setup?
- what should be the url?
- does we really need a certificate?
- where to download certificate?
- does we really need to configure each time while project setup?
PS. I am really beginner in elasticsearch really need to learn it.