Hi Guys,
I am new to ES, I recently integrated ES in my Django project by following.
https://django-elasticsearch-dsl.readthedocs.io/en/latest/quickstart.html
Versions used:
django-elasticsearch-dsl==7.1.4
django-elasticsearch-dsl-drf==0.20.9
elasticsearch==7.10.1
elasticsearch-dsl==7.3.0
Elastic search version:
"version" : {
"number" : "7.10.1",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "1c34507e66d7db1211f66f3513706fdf548736aa",
"build_date" : "2020-12-05T01:00:33.671820Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
Whenever my Django makes the connection for the first time it throws this error (after the first time of any query it won't show).
/home/user/Documents/work/Project/env/lib/python3.6/site-packages/elasticsearch/connection/base.py:193: ElasticsearchDeprecationWarning: this request accesses system indices: [.security-7], but in a future major version, direct access to system indices will be prevented by default warnings.warn(message, category=ElasticsearchDeprecationWarning)
I am using auth with username and password in setting.py:
ELASTICSEARCH_DSL = {
'default': {
'hosts': 'localhost:9200',
'http_auth': ('elastic', 'my_pwd')
}
}
ELASTICSEARCH_DSL_INDEX_SETTINGS = {
'number_of_shards': 1,
'number_of_replicas': 0
}
I tried finding everything on the web to find something but to no avail. Can someone please clarify what this warning means and how I can rectify it? Thanks.
Best Regards,
Varshap