okfn-brasil / querido-diario-api

This is Querido Diário's API. It provides everything the frontend does and even more!
https://queridodiario.ok.org.br/api/docs
MIT License
48 stars 32 forks source link

Add `sortby` parameter #27

Closed jvanz closed 3 years ago

jvanz commented 3 years ago

Add an option in the API endpoints to allow the user to define the order of the search results. The API should allow 3 types: relevance (elasticsearch relevance), date by descending and ascending order.

jvanz commented 3 years ago

@andreformento don't you want to work on this? :grin:

andreformento commented 3 years ago

Yes, I can do this :D

andreformento commented 3 years ago

TODO: boost using keywords (field keywords, date, city id)