You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to add documents to Solr: Solr responded with an error (HTTP 400): [Reason: ERROR: [doc=core.datadeclaration.2] multiple values encountered for non multiValued field cohorts: [MUST (Diabetes MUltiplex family STudy), DeNoPa (De Novo Parkinson Longitudinal Study)]]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/haystack/backends/solr_backend.py", line 76, in update
self.conn.add(docs, commit=commit, boost=index.get_field_weights())
File "/usr/local/lib/python3.6/site-packages/pysolr.py", line 918, in add
overwrite=overwrite, handler=handler)
File "/usr/local/lib/python3.6/site-packages/pysolr.py", line 500, in _update
return self._send_request('post', path, message, {'Content-type': 'text/xml; charset=utf-8'})
File "/usr/local/lib/python3.6/site-packages/pysolr.py", line 412, in _send_request
raise SolrError(error_message % (resp.status_code, solr_message))
pysolr.SolrError: Solr responded with an error (HTTP 400): [Reason: ERROR: [doc=core.datadeclaration.2] multiple values encountered for non multiValued field cohorts: [MUST (Diabetes MUltiplex family STudy), DeNoPa (De Novo Parkinson Longitudinal Study)]]
the cohort field is now a many to many relationship but the solr schema https://github.com/elixir-luxembourg/daisy/blob/develop/core/search_indexes.py still specify the cohorts field as a charfield.
The text was updated successfully, but these errors were encountered: