-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Custom mapping write doc fix #297
Custom mapping write doc fix #297
Conversation
Hi @karimjp, thank you for working on this. I had a closer look at the haystack/haystack/database/elasticsearch.py Lines 146 to 195 in 9d0df60
At line 170, the dictionaries get converted to We might want to have a fix for it first before we can continue with this PR. What do you think? |
…ield to rest api config and defined it in rest api ES document store init
…custom_mapping_write_doc_fix
…imjp/haystack into custom_mapping_write_doc_fix
Hi @tanaysoni you were absolutely right about the custom keys being indexed with the default key names, thanks for catching this. I added the changes in the latest commits to the branch custom_mapping_write_doc_fix. In addition to the fixes we talked, I noticed rest_api/config.py was missing a configuration option to map a custom name field and so I added it and also included it in rest_api/controller/search.py. |
Thank you for the fixes @karimjp. I added a small test case to the PR and it works well! |
Fix to address issue #293