NationalMuseumAustralia / Collection-API

The public web API of the National Museum of Australia
10 stars 0 forks source link

Sort should ignore punctuation and case #31

Open staplegun opened 6 years ago

staplegun commented 6 years ago

Currently sort_title is a strict alphabetic sort on the titles as entered, so titles that start with punctuation all appear first. Also titles that start with lowercase are sorted separately (though this might be acceptable?)

Conal-Tuohy commented 3 years ago

Trivially easy to strip punctuation from sort keys in the API’s index, and normalize the text to lower case

Conal-Tuohy commented 3 years ago

actually the sort keys are defined using Solr's "dynamic fields" and "copy fields", so this might be a bit fiddly. It might be simpler to define the sort keys as regular Solr fields and populate them explicitly in the XSLT which generates the Solr metadata.