-
Notifications
You must be signed in to change notification settings - Fork 492
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
Dataset file count in search results from API #6601
Comments
Related to:
|
Moving to ready as this seems clear enough. |
Makes sense. I think we should take the performance hit on the indexing side. That is, store the database id of each file in an array for the dataset version in question. That way, we don't have to go to the database at search/browse time. |
|
completely agree with you @djbrooke, it will be an overkill otherwise and could increase the payload dramatically |
In non-overkill style, I just made a pull request #6623 which is small and doesn't involve reindexing or any Solr changes. |
in Search API show fileCount for datasets #6601
Hi!
We have been recently working with search results and also retrieving dataset information.
We are wondering whether it would be possible to get the file count for a dataset as part of the information being returned in each dataset information search result item.
We would find it very handy for our application
Why do we need it?
When showing dataset information in our application, we want to display the number of files that a dataset has as part of the search result. Currently, the only way to do this operation is by retrieving dataset information and calculating the files' array length.
Why would this be useful for other people?
Taking into consideration that people might be performing searches looking for dataset files, it would be handy to know whether a dataset contains files.
Thanks! 🚀
The text was updated successfully, but these errors were encountered: