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

solr indexation of datadeclarations fails #56

Closed
neoflex opened this issue Aug 1, 2019 · 1 comment
Closed

solr indexation of datadeclarations fails #56

neoflex opened this issue Aug 1, 2019 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@neoflex
Copy link
Member

neoflex commented Aug 1, 2019

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.

@neoflex neoflex added the bug Something isn't working label Aug 1, 2019
@neoflex neoflex added this to the m_01 milestone Aug 1, 2019
@vildead
Copy link
Member

vildead commented Aug 6, 2019

closing the issue. commit: decd5f6

@vildead vildead closed this as completed Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants