Hi!
I found the issue. To filter only items in the default discovery filter that appears when we perform an empty search in DSpace 7.6, I modified the defaultFilterQueries property in the defaultConfiguration in the file <dspace>/config/spring/api/discovery.xml, as shown below:
Before:
<!--The default configuration settings for discovery-->
<bean id="defaultConfiguration" class="org.dspace.discovery.configuration.DiscoveryConfiguration" scope="prototype">
...
<property name="defaultFilterQueries">
<list>
<!--Only find items, communities and collections-->
<value>(search.resourcetype:Item AND latestVersion:true) OR search.resourcetype:Collection OR search.resourcetype:Community</value>
<value>-withdrawn:true AND -discoverable:false</value>
</list>
</property>
...
After
<!--The default configuration settings for discovery-->
<bean id="defaultConfiguration" class="org.dspace.discovery.configuration.DiscoveryConfiguration" scope="prototype">
...
<property name="defaultFilterQueries">
<list>
<!--Only find items, communities and collections-->
<value>(search.resourcetype:Item AND latestVersion:true)</value>
<value>-withdrawn:true AND -discoverable:false</value>
</list>
</property>
...
This affected the search for communities and collections when creating new subcommunity/collection or item, respectively.
I reverted the modification, and the 'No community found' issue was resolved.
However, now I'm trying to find a way to return only items when performing an empty search in the search box of DSpace 7.6, meaning I don't want communities and collections to be returned in this search.
Does anyone know how to achieve this?
Thank you
Manuela Klanovicz Ferreira