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

Transformation Issue in Solr Document Conversion #3276

Open
hmiguim opened this issue Sep 3, 2024 · 0 comments
Open

Transformation Issue in Solr Document Conversion #3276

hmiguim opened this issue Sep 3, 2024 · 0 comments
Assignees
Labels

Comments

@hmiguim
Copy link
Member

hmiguim commented Sep 3, 2024

When fetching a document from Solr and converting it to POJO, there is a transformation problem: converting multivalued fields into a single string and then converting it back to a list.

Example:

From Solr comes the following field: "permission_users_GRANT":["admin","guest"]

  • the first conversion results in: "[admin,guest]"
  • the second conversion results in: ["[admin,guest]"]

Giving the following result when requested via REST-API:

"permission_users_GRANT": [
      "[admin, guest]"
  ],

Here:
https://github.com/keeps/roda/blob/78d156dce3f00c9270a473c85c50a85812d268ef/roda-core/roda-core/src/main/java/org/roda/core/index/schema/collections/FileCollection.java#L328C5-L334C6

@hmiguim hmiguim added the bug label Sep 3, 2024
@hmiguim hmiguim changed the title Solr to object transformation Transformation Issue in Solr Document Conversion Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants