Just to add some more context, in the homepageConfiguration and the defaultConfiguration I've added the following both in the searchFilters and sidebarFacets property lists:
<ref bean="searchFilterGenere">
Then further down with the other filters I've added the following:
<bean id="searchFilterGenere" class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
<property name="indexFieldName" value="genere">
<property name="metadataFields">
<list>
<value>local.genere</value>
</list>
</property>
</bean>
I have also tried adding more properties to this but nothing changed.
Finally,
as said previously, I tried both rebuilding the index with "dspace/bin/dspace
index-discovery -b" and also forcing the update with "dspace/bin/dspace
index-discovery -f".
When I try to launch a search with f.genere=value,sorting it gives me an error
(type=Bad Request, status=400).