Searching should support sorting by classifications #3574
Labels
Lead: @cdrini
Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed]
Priority: 2
Important, as time permits. [managed]
Theme: Library Explorer
Theme: Search
Issues related to search UI and backend. [managed]
Type: Feature Request
Issue describes a feature or enhancement we'd like to implement. [managed]
Although searches like https://dev.openlibrary.org/search?q=lcc%3AQA*&mode=everything are possible (on dev), it is currently not possible to view the results in "Shelf order". This data lives in solr, but has just not been exposed to any of the OL search apis.
This would be essential for a "Sort by shelf order" feature.
Summary of Requirements
&sort=lcc
parameter to /search and /search.json&sort=ddc
parameter to /search and /search.jsonNote:
lcc
andddc
are multiValued fields in solr; this makes them ineligible for use as a sorting field. The fieldslcc_sort
andddc_sort
were created for this purpose, but they had to be single valued (1 per work), and the longed such value was used. This could create a kind of confusing situation where one could back unexpected results. We might want to exposelcc_sort
andddc_sort
directly, maybe? Or automatically switchlcc:
tolcc_sort
if we're sorting? But that will change the number of results :/ Exposinglcc_sort
might be better for now.Stakeholders
@seabelis @LeadSongDog
The text was updated successfully, but these errors were encountered: