Skip to content

Nouveau - Facet counts should be ordered #5623

@german-enriquez

Description

@german-enriquez

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions