Sort by dc.date.available

37 views
Skip to first unread message

Bill Tantzen

unread,
Aug 24, 2022, 1:17:57 PM8/24/22
to DSpace Technical Support
In DSpace 7.3, I am attempting to add a sort option to the workspaceConfiguration (to sort recent submissions) based on dc.date.available

I have added and referenced a SortFieldConfiguration bean:
    <bean id="sortDateAvailable" class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration">
        <property name="metadataField" value="dc.date.available"/>
        <property name="type" value="date"/>
        <property name="defaultSortOrder" value="desc"/>
    </bean>

After rebuilding the search index, the sort does not work.

A look at the solr logs reveals the parameter: sort=dc.date.available_sort, but there is no such field in the index.  I tried setting the type to "text", but again this fails, and the solr log now shows the query parameter is sort=dc.date.available_sort.  Same thing, there is no such field in the index.

Not sure if this has anything to do with it, but I have a couple thousand items with multiple dc.date.available metadatavalues (not sure how this happens), and the dynamic fields *_dt and *_sort are NOT defined as multivalued.

Is there a step I am missing, or are the multiple metadatavalues the problem?  

Thanks,
~~Bill

--
Human wheels spin round and round
While the clock keeps the pace... -- John Mellencamp
________________________________________________________________
Bill Tantzen    University of Minnesota Libraries
612-626-9949 (U of M)    612-325-1777 (cell)
Reply all
Reply to author
Forward
0 new messages