[Dspace-tech] DiscoverySortFieldConfiguration not properly working

29 views
Skip to first unread message

RENATO CAMARGOS DE ALMEIDA SOUSA

unread,
Oct 23, 2025, 9:31:23 PM (14 days ago) Oct 23
to DSpace Technical Support
Hi,

DSpace v7.6,

I'm new to this area and would appreciate some help with an issue I'm facing.

I created a DiscoverySortFieldConfiguration in my Discovery.xml and added it to a DiscoveryConfiguration area. I was able to see the option correctly, and everything looked fine. The problem arose when I checked the item order; it wasn't sorting as I intended. Here's the bean:


<bean id="sortAvailable_Recentes" class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration">
    <property name="metadataField" value="dc.date.available"/>
    <property name="type" value="date"/>
    <property name="defaultSortOrder" value="desc"/>
</bean>


It's likely that there's a problem with the "date" type.

Could someone help me or provide a link with specific guidance regarding this issue?

Regards,
Renato Camargos

Caroline C

unread,
Nov 4, 2025, 7:20:28 AM (2 days ago) Nov 4
to DSpace Technical Support
Hello, 
     I happened to encounter a similar issue before. In SOLR, this field is treated as text. You can go to the SOLR interface and find the following error message.
"sort":"dc.date.available desc",  ...  "error":{
"metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg":"can not sort on multivalued field: dc.date.available of type: text"
"code":400   

I used dc.date.accessioned instead.
Regards,
Caroline C.
RENATO CAMARGOS DE ALMEIDA SOUSA 在 2025年10月24日 星期五上午9:31:23 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages