-
Notifications
You must be signed in to change notification settings - Fork 277
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
Accept multiple values per field in SearchService #2913
Accept multiple values per field in SearchService #2913
Conversation
I have to say that it actually doesn't bring |
DemoPrerequisiteUsing remote_api_shell a list of fields with the same name and type are created (multivalued field). Beforeremote_api_shell
search log
After
NoteThis PR doesn't actually make multivalued fields work. It just makes it possible to avoid error when document is indexed.
So the only latest value of the field is indexed and stored. As Search API is still experimental and we're going to implement multivalued fields support I would vote for merging it anyway as a first step in that direction. |
The PR contains two commits: the first is related to ability to debug the problem when the second is about actual fix.
solr_interface was building a list of fields to update in index schema by just looping through document fields and ignoring fields which are already in schema. But it didn't take in account that document can contain multiple values for the field, so it was sending duplicated fields in update_schema request.
https://ocd.appscale.com:8080/job/Daily%20Build/5623