Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we search the answer if we did not select index in Elasticsearch? #53

Closed
laifuchicago opened this issue Apr 6, 2020 · 0 comments
Closed

Comments

@laifuchicago
Copy link

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.

masci pushed a commit that referenced this issue Nov 27, 2023
Simplify public interface imports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant