Hi Andrea, This is not the same issue as we were talking here??: https://github.com/DSpace/DSpace/pull/968
El jueves, 25 de febrero de 2016, 5:18:49 (UTC+1), Andrea Schweer escribió: > > Hi all, > > has anyone had any luck getting the subject browse/facets to ignore > diacritics when sorting the subject terms? Right now (5.x, XMLUI, > discovery), we get a sort order like this: > > manager > Manuka Leaf Oil > Manukau > Manukau Harbour > marginal groups > marginal value theorem > Maze procedure > Mānuka Honey > > in browse and > > manager > Manuka Leaf Oil > Manukau > Manukau Harbour > marginal groups > marginal value theorem > Maze procedure > mythology > Mānuka Honey > > in the facet listing. > > I've been asked whether it's possible to change the sort order such that > "Mānuka" gets sorted between "manager" and "Manukau" -- that is, as if > there was no diacritic. The subject terms should remain listed with > their actual values though (it's not an option to simply strip out the > diacritics during indexing). > > I have vague memories that we managed to tweak this behaviour by > configuring the collation locale in PostgreSQL, back in the > database-backed browse. Obviously that doesn't work with Discovery. > > I tried a few changes to the Solr schema for the discovery core, but > none appeared to do what I want. Based on the UnicodeCollation page in > the Solr wiki [1], it looks like configuring collation for a sort field > might be the way to go; it isn't possible to set up collation for the > subject field/s because then the stored value changes to a binary > representation of the metadata value that includes the collation key. I > imagine this would work for title browse, where the results (=DSpace > items) are sorted by one of the configured sort fields. However, the > subject browse listings (where the results are metadata values) > ultimately come from a facet query, and facet.sort only takes "count" or > "index" as its values [2] -- it doesn't look like it's possible to add > collation into the mix there. > > Does anyone have any thoughts on this? > > cheers, > Andrea > > > [1]: https://wiki.apache.org/solr/UnicodeCollation > [2]: https://wiki.apache.org/solr/SimpleFacetParameters#facet.sort > > -- > Dr Andrea Schweer > Lead Software Developer, ITS Information Systems > The University of Waikato, Hamilton, New Zealand > +64-7-837 9120 > > -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
