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

attributeError: 'SQLDocumentStore' object has no attribute 'query' #20

Closed
laifuchicago opened this issue Feb 11, 2020 · 2 comments
Closed

Comments

@laifuchicago
Copy link

To author:
I have changed the retriever to Elasticsearch, but got the following error, do you have any idea about it?
no attribute query

@tholor
Copy link
Member

tholor commented Feb 11, 2020

Hey @laifuchicago,

The ElasticsearchRetriever is only compatible with an ElasticsearchDocumentStore as it relies on the indexing and scoring functions of ES. It seems that you passed a SQLDocumentStore to the retriever. We will add a clearer Error Message here to avoid any confusion in the future...

@laifuchicago
Copy link
Author

Thank you, it can be used now.

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

2 participants