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

Harmonize meta data handling across doc stores #214

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

tholor
Copy link
Member

@tholor tholor commented Jul 9, 2020

For document_stores.write_docs(dicts), we want a similar behavior across different types of document stores.
So far the meta data handling was different for elasticsearch, where we just indexed the dictionaries in the same structure as they came in. So if you passed [{"name": "some", "text": "some", "meta":{"author": "some"}}], it would result in the same nested structure in elasticsearch.

This PR makes the behaviour similar to the other document stores by unnesting the "meta" field before indexing.

@tholor tholor requested a review from tanaysoni July 9, 2020 13:20
@tholor tholor merged commit 549f3a1 into master Jul 9, 2020
@julian-risch julian-risch deleted the equal_meta_handling_elastic branch November 15, 2021 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants