Out of the box discovery in DSpace 6 works quite well. But it does not include filenames and file descriptions in the search index.
As we plan to allow research data publications on our repository, there will be publications with many files (as opposed to text publications which usually consist of only one pdf) and it would be nice to be able to search for filenames and file descriptions.
Sometimes extending DSpace turns out to be very easy and straightforward, albeit not very well documented.
To add fields and values to the discovery index, just create a new implementation of the SolrServiceIndexPlugin
class and add your fields and values to the document
in the additionalIndex
method: