inveniosoftware / invenio-records-rest

Invenio records REST API module.
https://invenio-records-rest.readthedocs.io
MIT License
4 stars 63 forks source link

views: support for turning off aggregations to support infinite scroll #261

Closed lnielsen closed 5 years ago

lnielsen commented 5 years ago

Related to #258

When you implement infinite scroll you don't need to have the aggregations recalculated on every update, thus it would be nice with a feature that could switch it off, if not needed.

lnielsen commented 5 years ago

facets:default_facets_factory would need to read a query parameter to disable the facets. To be discussed what this parameter should be named.

Option 1 Just switch off all aggregations.

Option 2 Query parameter to specify which aggregations you want:

?aggs=year,author