Thanks for your message, Caroline.
I managed to solve the issue. I had created two customized beans of
"DiscoveryConfiguration" and forgot to add my new
"DiscoverySortFieldConfiguration" to one of them.
After adjusting this on "discovery.xml" and reindexing my items, the new
"dc.date.available_dt" index (focus on the "_dt" suffix) was created on
Solr. Consequently, everything worked as expected.
Regards,
Renato Camargos
Em terça-feira, 4 de novembro de 2025 às 09:20:28 UTC-3, Caroline C
escreveu:
> 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] 的信中寫道:
>
>> 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
>
>
--
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/e37728f6-eff0-4df9-b41b-66b57141dcbdn%40googlegroups.com.