internetarchive / openlibrary

One webpage for every book ever published!
https://openlibrary.org
GNU Affero General Public License v3.0
5.21k stars 1.37k forks source link

fields filtering in trending and works api #8325

Open alicimen0614 opened 1 year ago

alicimen0614 commented 1 year ago

Question

https://openlibrary.org/trending/monthly.json?limit=10&page=1 https://openlibrary.org/works/OL17930368W.json where should ı add the fields parameter or does it even have this feature on these ones? something like this https://openlibrary.org/search.json?subject=fantasy&fields=key,title,edition_count,first_publish_year,isbn,cover_i,first_sentencet&limit=20,page=1 this doesn't work: https://openlibrary.org/trending/monthly.json?limit=10&page=1&fields=... ### Additional context

Issue resolution criteria

Stakeholders

mekarpeles commented 1 year ago

The answer is no because we don't have trending in solr, we compute it and cache it based on the reading log in ~real-time. The closest we have (that we're planning for now) is using the readinglog sort method on search/solr.

mekarpeles commented 1 year ago

If we're specifically interested in specifying the fields, we should be able to do that, cc: @cdrini