german-enriquez opened a new issue, #5623: URL: https://github.com/apache/couchdb/issues/5623
## Summary Say I have a faceted field that contains tens of thousands of values, when querying with `counts` the resulting values are limited to the first 10 but without any apparent order. Without the ability to select the order, one cannot be sure if those results are the most relevant ones for the query. It is unreasonable to traverse all facet results (by increasing `top_n` ad-infinitum) in order to find those with the greatest count or to have an alphabetically sorted list of facets. ## Desired Behaviour Modify the `counts` parameter so instead of it being an array of strings, it becomes an array of objects with the form: ``` "counts": [ { "field": "subject", "sort": "count" } ] ``` ## Additional context I've been using and modifying DSpace for some years now and the main issue I have with it is its reliance on SOLR for full-text searches and faceting. In my experience, SOLR is faulty; so I decided to create my own de-bloated version of a digital repository using CouchDB. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org