You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To: Writer
In previous version, inference.py we can left index part blank just like:
document_store = ElasticsearchDocumentStore(host="localhost", username="", password="", index="")
But in the latest version, if we left it blank, it would show:
Traceback (most recent call last):
File "inference2.py", line 42, in
document_store = ElasticsearchDocumentStore(host="172.18.0.3", username="", password="", index="")
File "/workspace/haystack/haystack/database/elasticsearch.py", line 49, in init
self.client.indices.create(index=index, ignore=400, body=custom_mapping)
File "/root/.local/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 92, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/root/.local/lib/python3.6/site-packages/elasticsearch/client/indices.py", line 101, in create
raise ValueError("Empty value passed for a required argument 'index'.")
ValueError: Empty value passed for a required argument 'index'.
Can you please help, thanks.
The text was updated successfully, but these errors were encountered:
To: Writer
In previous version, inference.py we can left index part blank just like:
document_store = ElasticsearchDocumentStore(host="localhost", username="", password="", index="")
But in the latest version, if we left it blank, it would show:
File "inference2.py", line 42, in
document_store = ElasticsearchDocumentStore(host="172.18.0.3", username="", password="", index="")
File "/workspace/haystack/haystack/database/elasticsearch.py", line 49, in init
self.client.indices.create(index=index, ignore=400, body=custom_mapping)
File "/root/.local/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 92, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/root/.local/lib/python3.6/site-packages/elasticsearch/client/indices.py", line 101, in create
raise ValueError("Empty value passed for a required argument 'index'.")
ValueError: Empty value passed for a required argument 'index'.
Can you please help, thanks.
The text was updated successfully, but these errors were encountered: