Hi Diego,

That setting you've added 
to org.dspace.discovery.configuration.DiscoverySearchFilterFacet is not 
valid because there is no "defaultSortOrder" property defined on that Java 
object 
https://github.com/DSpace/DSpace/blob/main/dspace-api/src/main/java/org/dspace/discovery/configuration/DiscoverySearchFilterFacet.java

In other words, in that Spring XML configuration, you can only specify 
properties which exist on the corresponding Java object.

At this time, I'm not aware of a way to configure a facet to support 
descending order by default.  That'd likely need to be done via custom Java 
code.

Tim

On Friday, December 20, 2024 at 3:14:14 AM UTC-6 Diego Brice wrote:

> .
>
> El miércoles, 18 de diciembre de 2024 a la(s) 1:54:11 p.m. UTC+8, Diego 
> Brice escribió:
>
>> Hi.  Is it possible to sort facet values in DESC order?. I want to have 
>> the Date issued facet in descending order. I tried to add the line in red 
>> to the bean configuration but it is not valid:
>>
>>     <bean id="searchFilterIssued" 
>> class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
>>         <property name="indexFieldName" value="dateIssued"/>
>>         <property name="metadataFields">
>>             <list>
>>                 <value>dc.date.issued</value>
>>             </list>
>>         </property>
>>         <property name="type" value="text"/>
>>         <property name="facetLimit" value="5"/>
>>         <property name="sortOrderSidebar" value="VALUE"/>
>>         <property name="sortOrderFilterPage" value="VALUE"/>
>>         <property name="isOpenByDefault" value="false"/>
>>         <property name="pageSize" value="10"/>
>>         <property name="exposeMinAndMaxValue" value="true"/>
>> *<property name="defaultSortOrder" value="desc"/>*
>>     </bean>
>>
>> TIA
>>
>> Diego
>>
>

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/6b97ce31-852d-4ee0-95b4-ea4150b29cb9n%40googlegroups.com.

Reply via email to