User jensvannerum provided the solution to the problem. The solution was to change a Solr configuration file. You can see the solution at this link: https://github.com/DSpace/DSpace/issues/10768
Thanks jensvannerum! Em seg., 17 de mar. de 2025 às 20:03, Aroldo Rique Júnior <[email protected]> escreveu: > Hi > > I'm having trouble sorting the results of a search by the > dc.date.accessioned metadata in ascending order. My discovery.xml is > configured as follows. > > <!--The sort filters for the discovery search--> > <property name="searchSortConfiguration"> > <bean > class="org.dspace.discovery.configuration.DiscoverySortConfiguration"> > <property name="sortFields"> > <list> > <ref bean="sortDateAccessioned"/> > > *<ref bean="sortDateAccessionedAsc"/>* > <ref bean="sortTitle"/> > </list> > </property> > </bean> > </property> > > <bean id="sortDateAccessionedAsc" > class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration"> > <property name="metadataField" value="dc.date.accessioned"/> > <property name="type" value="date"/> > *<property name="defaultSortOrder" value="asc"/>* > </bean> > > > Note that the first results are collection records, which don't even have > the dc.date.accessioned metadata. What could be happening? > > Link: > https://biblioteca.mpf.mp.br/repositorio/search?spc.page=1&spc.sf=dc.date.accessioned&spc.sd=ASC > > [image: image.png] > > Aroldo > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion visit https://groups.google.com/d/msgid/dspace-tech/CACKFi%2Bcma0CJM83MsL%2B0bT-f6jzAVwL3aiJbz8R6fg0wxkWT5g%40mail.gmail.com.
