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

User metadata with nested JSON not properly indexed #403

Open
max-zilla opened this issue Mar 6, 2023 · 0 comments
Open

User metadata with nested JSON not properly indexed #403

max-zilla opened this issue Mar 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@max-zilla
Copy link
Contributor

https://github.com/clowder-framework/clowder/blob/develop/app/util/SearchUtils.scala#L69

This attempts to flatten JSON contents into an array when duplicate keys are encountered. but doesn't work if the JSON is nested.
The logic seems to assume the JSON will only be Metadata Definitions (i.e. from GUI). the cat:extractor user doesn't do any of this. Needs to either wait until it reaches leaf node of metadata to do the array-ification, or find another way to index multiple occurrences of a Metadata Definition.

@max-zilla max-zilla added the bug Something isn't working label Mar 6, 2023
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

1 participant