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

OpenSearchDocumentStore: No handler for type [flattened] declared on field [answer] #1607

Closed
ZanSara opened this issue Oct 18, 2021 Discussed in #1603 · 4 comments · Fixed by #1609
Closed

OpenSearchDocumentStore: No handler for type [flattened] declared on field [answer] #1607

ZanSara opened this issue Oct 18, 2021 Discussed in #1603 · 4 comments · Fixed by #1609
Labels
topic:document_store type:bug Something isn't working

Comments

@ZanSara
Copy link
Contributor

ZanSara commented Oct 18, 2021

Discussed in #1603

Originally posted by pallie97 October 15, 2021
Hello. I am trying to use AWS OpenSearch Service (version: OpenSearch1.0) for my document store -- I am using JupyterLab with Python 3.7 and the latest Haystack version. When I try to create the document store in my notebook with OpenSearchDocumentStore(), I receive the following error:

RequestError(400, 'mapper_parsing_exception', 'No handler for type [flattened] declared on field [answer]').

I am unsure if this is an AWS issue or if it's something the Haystack community can help me with. I have tried setting index_type = 'hnsw' in the OpenSearchDocumentStore constructor and also tested different versions of ElasticSearch in AWS, but still get the same error.

I appreciate any help, thanks!

@ZanSara ZanSara added topic:document_store type:bug Something isn't working labels Oct 18, 2021
@ZanSara
Copy link
Contributor Author

ZanSara commented Oct 18, 2021

@tholor: probably related to #1398, do you know what might be happening?

@tholor
Copy link
Member

tholor commented Oct 19, 2021

I am able to reproduce the error and will investigate the root cause - very likely related to our recent refactoring in #1398

@tholor
Copy link
Member

tholor commented Oct 19, 2021

@pallie97 It should be fixed now in master. Can you please verify if this works on your end now, too?

@pallie97
Copy link

@tholor It is working for me now. Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:document_store type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants