You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a front-end user, when I sort documents by shelfmark I want it sorted in logical, human-readable order instead of by string so that I can more easily find the records I'm interested in.
#1162
Closed
4 tasks done
rlskoeser opened this issue
Oct 6, 2022
· 2 comments
Test the shelfmark sort for the document search on the public site; it should sort numerically the way a human would expect rather than sorting as text/strings (i.e. 10 should come after 2-9). Shelfmark sorting should ignore upper/lower case, and should sort embedded numbers numerically.
What I recommend is that we implement natural sorting for shelfmarks in Solr. I know how it needs to be done but didn't want to do too many changes at once, and I wasn't sure how essential this is. If you want to create an issue, I can add notes to the documentation / example config that I found (or maybe even add it quickly in next week!)
The text was updated successfully, but these errors were encountered:
rlskoeser
changed the title
shelfmark sort in document search should use natural sorting
As a front-end user, when I sort documents by shelfmark I want it sorted in logical, human-readable order instead of by string so that I can more easily find the records I'm interested in.
Oct 12, 2022
@rlskoeser sort works logically, thank you! Only concern is the sorting by shelfmark for joins (also logical, but can be confusing if the first shelfmark on the join is not what you searched for). Kicking over to Performant as it will probably need help text/more time to improve!
Good call to close for now. Was writing an idea for help-text, but then realized that only Geniza researchers would likely search this way (so Alan and others can muddle through for now).
I think with Performant, it would be ideal if the shelfmark sort privileged whatever was in the search bar (so assuming someone wants to page through T-S AS, they would put T-S AS in the search and then sort by shelfmark). Then joins between T-S AS ___ + AIU would appear in the search results with the T-S AS join in the place that the T-S AS fragment would appear if it were not a join.
testing notes
Test the shelfmark sort for the document search on the public site; it should sort numerically the way a human would expect rather than sorting as text/strings (i.e. 10 should come after 2-9). Shelfmark sorting should ignore upper/lower case, and should sort embedded numbers numerically.
You can browse all records ordered by shelfmark (and jump through pagination as desired): all documents sorted by shelfmark (test site)
It may be helpful to test with a shelfmark filter active, e.g.: documents where shelfmark includes 10j11 (test site)
Originally posted by @rlskoeser in #863 (comment)
dev notes
Should be able to do almost exactly this (except drop the leading article replacement):
https://stackoverflow.com/questions/15164342/how-to-sort-text-string-in-solr-using-a-natural-sort-order
natsort
,*_natsort
)shelfmark_natsort
Originally posted by @rlskoeser in #863 (comment)
The text was updated successfully, but these errors were encountered: