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

Feature Request: Search in compound field parents #11143

Open
vera opened this issue Jan 9, 2025 · 2 comments
Open

Feature Request: Search in compound field parents #11143

vera opened this issue Jan 9, 2025 · 2 comments
Labels
Type: Feature a feature request

Comments

@vera
Copy link
Contributor

vera commented Jan 9, 2025

Overview of the Feature Request

We are interested in extending the Dataverse search functionality to support queries at the compound field parent level.

For example, the geospatial metadata block includes the compound field geographicCoverage (parent), with optional children: country, state, city, and otherGeographicCoverage.

We envision two new search use cases:

  1. Find datasets with any geographic coverage metadata using geographicCoverage:*, instead of enumerating all children (country:* OR state:* OR city:* OR otherGeographicCoverage:*).

  2. Find datasets containing specific terms anywhere in geographicCoverage, without needing to know or specify the exact child field. E.g., I might query for geographicCoverage:"new york" because I am not sure if the information was provided within the state or city field and I don't care, I just want to match anywhere within the geographic coverage compound field.

What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)

All search users (e.g. API user, guest).

What inspired the request?

Our service requires parent-level searches for compound fields as described.

What existing behavior do you want changed?

Enable direct searches on compound field parents.

Any brand new behavior do you want to add to Dataverse?

/

Any open or closed issues related to this feature request?

Not aware of any.

Are you thinking about creating a pull request for this feature?

Yes, I am testing an implementation (using Solr's copyfield directives to aggregate child fields into the parent field) and would like to submit a PR soon.

@vera vera added the Type: Feature a feature request label Jan 9, 2025
@pdurbin
Copy link
Member

pdurbin commented Jan 9, 2025

copyfield sounds like a good approach to me! Go go go! 🚀

@jggautier
Copy link
Contributor

Just noting that I think #7856 is related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature a feature request
Projects
None yet
Development

No branches or pull requests

3 participants