Group search results
The search results are "boring". This could be improved by grouping search results, e.g. by main_author
, upload_id
, datasets
, etc.
Grouping can be done via ES aggregations. Besides performance, the typical downside is that there is no page-based pagination and sorting. The former does not matter as we use a scroll based pagination anyways. The latter is more severe.
We could use composite aggregation that combine keys (e.g. main_author
+ upload_create_time
). This would allow to "sort" by upload_create_time
(practically using upload_create_time
would yield the same results anyways). If you combine main_author
+ formula
for example, you would get each formula
in its own group again and practically won't have any grouping. All in all sorting is very limited.
As a consequence, I would see grouping only as an additional feature and not a replacement for the current search results. We could offer a simple by upload list that is sorted by upload_create_time
. In most practical cases this would look like a separation by author. The rows could unfold and show either a list of entries (say the first 10) and/or metadata about the upload. We could provide links to a search filtered for the upload or go to the upload page. Similar stuff could be done for datasets.
All in all this would bring back some of the functionality that we had in the old system.