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/Idea: Filter dataverses by number of datasets #10190

Open
vera opened this issue Dec 14, 2023 · 1 comment
Open

Feature Request/Idea: Filter dataverses by number of datasets #10190

vera opened this issue Dec 14, 2023 · 1 comment
Labels
Type: Feature a feature request

Comments

@vera
Copy link
Contributor

vera commented Dec 14, 2023

Overview of the Feature Request

Using the search API /api/search, I would like to filter dataverses by number of datasets.

What kind of user is the feature intended for?

API user

What inspired the request?

I'd like to find only dataverses that have content, e.g. filter by number of datasets > 0.

What existing behavior do you want changed?

Number of datasets in a dataverse should be added to the solr index so it can be used as a filter in the search API.

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

no

Any open or closed issues related to this feature request?

no

@vera vera added the Type: Feature a feature request label Dec 14, 2023
@pdurbin
Copy link
Member

pdurbin commented Dec 14, 2023

We have a similar thing going on for datasets. You can get the number of files, like this:

curl -s https://dataverse.harvard.edu/api/search?q=dsPersistentId:%22doi:10.7910/DVN/TJCLKP%22 | jq . | grep fileCount

    "fileCount": 3,

Here's how we added it:

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
Status: 🔍 Interest
Development

No branches or pull requests

2 participants