CDRH / api

Codenamed "Apium": An API to access all public Center for Digital Research in the Humanities resources
https://cdrhdev1.unl.edu/api_frontend
MIT License
3 stars 1 forks source link

aggregation sorting #18

Closed jduss4 closed 7 years ago

jduss4 commented 7 years ago

right now defaulting to _score but we should be able to alter this to alphabetical with parameters in the URL. we will need to add these to the schema

jduss4 commented 7 years ago

Also, should be able to limit number of responses (size)

jduss4 commented 7 years ago

use facet_num and facet_sort for fields, probably do not use arrays for facet_sort ?

Unfortunately it appears that you cannot "paginate" aggregations in ES, so we would have to return all and then paginate them if we wanted to do that in a UI.

jduss4 commented 7 years ago

Implemented