make changes to discovery.xml

379 views
Skip to first unread message

Alex B

unread,
Jul 21, 2023, 3:52:02 AM7/21/23
to DSpace Technical Support
Dear colleagues, how to make changes in discovery.xml?
We added the dc.type:* value to the discovery.xml file, which is a query by document type.
1.jpg
The expected result is a filter with the distribution of records by type, for example,
Article 10
Preprints 11
etc.
for example - for Has files and Item Type :
2.jpg
Screenshot from 2023-07-21 10-43-09.png
But it didn't work out that way. We tried to run the /dspace index-discovery command after modifying discovery.xml.
Help me please understand how to make changes to discovery.xml.

Best regards,
Alex


DSpace Technical Support

unread,
Jul 21, 2023, 4:40:21 PM7/21/23
to DSpace Technical Support
Hi Alex,

The "DefaultFilterQueries" is used for every single filter.  It doesn't create a new filter section.  See it's docs at: https://wiki.lyrasis.org/display/DSDOC7x/Discovery#Discovery-Addingdefaultfilterqueries(OPTIONAL)

I think you are trying to add a new Filter section?  If so, you'd want to look at the sections on adding a new *Facet* (each of those filter sections is called a Facet in Solr/Discovery). https://wiki.lyrasis.org/display/DSDOC7x/Discovery#Discovery-ConfiguringlistsofsidebarFacetsandsearchFilters   

For better examples, you should look at how the that "Item Type" section is configured in discovery.xml.  In the discovery.xml, that entire section is setup using the "searchFilterEntityType" filter/facet.   If you look at how that is setup, it should be a guide for what you are looking for, as it is simply a facet/filter on a single metadata field (dspace.entity.type).  The "searchFilterAuthor" (Author filter), "searchFilterSubject" (Subject filter) are also good examples.

Tim

Alex B

unread,
Aug 9, 2023, 3:40:19 AM8/9/23
to DSpace Technical Support
Dear Tim, sorry to bother you.
The new index (publication type) is added to the existing ones after adding it to dspace.cfg: webui.browse.index.6 = pubtype:metadata:dc.type.*:text (marked in the figure) and restarting tomcat. But there is no reaction to any changes in discovery.xml.
photo_2023-08-09_10-29-15.jpg

1) What steps need to be taken in order for the changes made to discovery.xml to take effect and become visible on the web interface?
I ran reindexing (it works), restarting Tomcat and Angular (yarn rebuild ). I don't see any effect.
2) There is a line in discovery.xml:
<!--Use site to override the default configuration for the home page & default discovery page-->
<entry key="site" value-ref="homepageConfiguration" />
site is a keyword or should we substitute the domain name of our site instead?
I added <ref bean="searchFilterType" /> to sidebarFacets and searchFilters for defaultConfiguration and homepageConfiguration (as Tim suggested).
Maybe we don't understand what a homepage is? This is the homepage of the site or homepage discovery (where is it? where to catch changes?)

Best regards,
Alex

пятница, 21 июля 2023 г. в 23:40:21 UTC+3, DSpace Technical Support:
Reply all
Reply to author
Forward
0 new messages