Difference between revisions of "SUNScholar/Search Indexes"

From Libopedia
Jump to navigation Jump to search
m
 
(122 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<center>
 
<center>
<font color="red">
+
'''[[SUNScholar/Indexes|Back to Indexes]]'''
'''!!! WARNING !!!'''
 
 
 
'''https://jira.duraspace.org/browse/DS-1070'''
 
 
 
'''Not a good idea to enable Discovery in DSpace version 1.7.2'''
 
</font>
 
 
</center>
 
</center>
==Introduction==
+
==Instructions==
{{WARNING}}
+
===[[SUNScholar/Discovery/5.X|For DSpace 5.X]]===
 
+
===[[SUNScholar/Discovery/4.X|For DSpace 4.X]]===
<font color="red">'''Before attempting SOLR discovery setup please make sure the following are correct:'''</font>
 
#[[SUNScholar/Prepare_Ubuntu/S05#Step_5.2.1:_Setup_.22authbind.22_for_Tomcat|Tomcat is listening on TCP port 80.]]
 
#[[SUNScholar/Install_Dspace/S08|The SOLR webapp is correctly published.]]
 
 
 
==Step 1==
 
Setup solr search URL in config file.
 
nano /home/dspace/dspace-1.8.2-src-release/dspace/config/modules/discovery.cfg
 
Make sure the solr URL is as follows by removing port 8080. See example below.
 
<pre>
 
#---------------------------------------------------------------#
 
#-----------------DISCOVERY CONFIGURATIONS----------------------#
 
#---------------------------------------------------------------#
 
# Configuration properties used solely by the Discovery        #
 
# faceted-search system.                                        #
 
#---------------------------------------------------------------#
 
##### Search Indexing #####
 
search.server = http://localhost/solr/search
 
 
 
#Char used to ensure that the sidebar facets are case insensitive
 
#solr.facets.split.char=|||
 
  
#All metadata fields that will not end up in the index, this is a comma separated list
 
index.ignore=dc.description.provenance
 
</pre>
 
{{NANO}}
 
  
==Step 2==
+
==<font color="red">'''PLEASE NOTE:'''</font>==
Please refer to the official DSpace documentation
+
*https://jira.duraspace.org/browse/DS-2482
* https://wiki.duraspace.org/display/DSDOC18/Discovery
+
*https://jira.duraspace.org/browse/DS-2809
* http://www.dspace.org/1_7_1Documentation/Discovery.html
 
==Step 3==
 
Type the following to rebuild the discovery index.
 
sudo /home/dspace/bin/dspace update-discovery-index -b
 
  
==Example config for DSpace 1.7.2==
+
==Check Config==
 +
To check your configuration, run the following:
 +
$HOME/bin/dspace dsrun org.dspace.discovery.configuration.DiscoveryConfigurationService
 +
See below for an example output.
 
<pre>
 
<pre>
 
+
79
##### Search Indexing #####
+
default
solr.search.server = http://localhost/solr/search
+
Facets:
 
+
advisor
# Should no solr facet be configured for a certain page, this one will be used as default
+
dc.contributor.advisor
#Every solr facet field which ends with _dt will be handled as a date
+
author
#Handeling as date implies that {field.name}.year will be used for faceting
+
dc.contributor.author
solr.facets.search=dc.contributor.author,dc.subject,dc.date.issued_dt
+
dc.creator
 
+
subject
solr.facets.site=dc.contributor.author,dc.subject,dc.date.issued_dt
+
dc.subject.*
solr.facets.community=dc.contributor.author,dc.subject,dc.date.issued_dt
+
dateIssued
solr.facets.collection=dc.contributor.author,dc.subject,dc.date.issued_dt
+
dc.date.issued
#solr.facets.item=dc.contributor.author,dc.subject,dc.date.issued_dt
+
Search filters
 
+
dc.title
 
+
dc.contributor.advisor
# Put any default search filters here, these filters will be applied to any search in discovery
+
dc.contributor.author
# You can specify multiple filters by separating them using ,
+
dc.creator
##Default filters are used for every search in discovery, including the separate scope filters below
+
dc.subject.*
#solr.default.filterQuery=location:l2
+
dc.date.issued
# You can also specify (additional) filter(s)
+
dc.type
## for homepage recent submissions
+
dc.description.provenance
#solr.site.default.filterQuery=
+
Recent submissions configuration:
## for community recent submissions
+
Metadata sort field: dc.date.accessioned
#solr.community.default.filterQuery=
+
Max recent submissions: 30
## for collection recent submissions
+
site
#solr.collection.default.filterQuery=
+
Facets:
## for searches
+
advisor
#solr.search.default.filterQuery=
+
dc.contributor.advisor
## for browsing (not used at the moment)
+
author
#solr.browse.default.filterQuery=
+
dc.contributor.author
 
+
dc.creator
# The filters which can be selected in the search form
+
subject
solr.search.filters=dc.title, dc.contributor.author, dc.date.issued.year, dc.subject, dc.type, dc.description.provenance
+
dc.subject.*
 
+
dateIssued
# Indexed fields which can sorted on in our search
+
dc.date.issued
solr.search.sort=dc.title, dc.date.issued_dt
+
Search filters
 
+
dc.title
#Defines whichs fields are indexed as dates
+
dc.contributor.advisor
#please be aware that for each date field an _dt will be suffixed so that dc.date.issued will become dc.date.issued_dt
+
dc.contributor.author
#For each date indexed the year will also be stored separately in a {field.name}.year so it can be used for date faceting
+
dc.creator
solr.index.type.date=dc.date,dc.date.*
+
dc.subject.*
 
+
dc.date.issued
#Recent submission size
+
dc.type
solr.recent-submissions.size=10
+
dc.description.provenance
#The indexed field on which we sort so we can determine which items where recently submitted
+
Recent submissions configuration:
recent.submissions.sort-option=dc.date.accessioned_dt
+
Metadata sort field: dc.date.accessioned
 
+
Max recent submissions: 30
#Use the property below to limit the number of facet filters in the side of the search page
 
search.facet.max=20
 
 
</pre>
 
</pre>
  
{{SOLR-WEBAPP}}
+
==References==
 
+
*https://wiki.duraspace.org/display/DSDOC5x/Discovery
{{CONSOLE}}
+
*https://wiki.duraspace.org/display/DSDOC4x/Discovery
 
+
*https://wiki.duraspace.org/display/DSDOC3x/Discovery
'''[[SUNScholar/Indexes|Back to Indexes]]'''
+
----
__NOTOC__
+
*https://github.com/DSpace/DSpace/blob/master/dspace/config/spring/api/discovery.xml
 +
[[Category:Customisation]]

Latest revision as of 19:27, 28 December 2016

Back to Indexes

Instructions

For DSpace 5.X

For DSpace 4.X

PLEASE NOTE:

Check Config

To check your configuration, run the following:

$HOME/bin/dspace dsrun org.dspace.discovery.configuration.DiscoveryConfigurationService

See below for an example output.

79
default
Facets:
	advisor
		dc.contributor.advisor
	author
		dc.contributor.author
		dc.creator
	subject
		dc.subject.*
	dateIssued
		dc.date.issued
Search filters
		dc.title
		dc.contributor.advisor
		dc.contributor.author
		dc.creator
		dc.subject.*
		dc.date.issued
		dc.type
		dc.description.provenance
Recent submissions configuration:
	Metadata sort field: dc.date.accessioned
	Max recent submissions: 30
site
Facets:
	advisor
		dc.contributor.advisor
	author
		dc.contributor.author
		dc.creator
	subject
		dc.subject.*
	dateIssued
		dc.date.issued
Search filters
		dc.title
		dc.contributor.advisor
		dc.contributor.author
		dc.creator
		dc.subject.*
		dc.date.issued
		dc.type
		dc.description.provenance
Recent submissions configuration:
	Metadata sort field: dc.date.accessioned
	Max recent submissions: 30

References