Difference between revisions of "SUNScholar/Discovery/3.X"

From Libopedia
Jump to navigation Jump to search
Line 5: Line 5:
  
 
==Step 1==
 
==Step 1==
Edit the solr search URL in the discovery service setup file.
 
nano /home/dspace/source/dspace/config/modules/discovery.cfg
 
Make sure the solr URL is as follows by removing port 8080. See example below.
 
<pre>
 
 
#---------------------------------------------------------------#
 
#---------------------------------------------------------------#
 
#-----------------DISCOVERY CONFIGURATIONS----------------------#
 
#-----------------DISCOVERY CONFIGURATIONS----------------------#
Line 19: Line 15:
  
 
#Char used to ensure that the sidebar facets are case insensitive
 
#Char used to ensure that the sidebar facets are case insensitive
#solr.facets.split.char=|||
+
#solr.facets.split.char=\n|||\n
  
#All metadata fields that will not end up in the index, this is a comma separated list
+
# index.ignore-variants = false
index.ignore=dc.description.provenance
+
# index.ignore-authority = false
 +
index.projection=dc.title,dc.contributor.*,dc.date.issued
 +
 
 +
# ONLY-FOR-JSPUI:
 +
# 1) you need to set the DiscoverySearchRequestProcessor in the dspace.cfg
 +
# 2) to show facet on Site/Community/etc. you need to add a Site/Community/Collection
 +
# Processors plugin in the dspace.cfg
 
</pre>
 
</pre>
 
{{NANO}}
 
{{NANO}}

Revision as of 15:40, 9 December 2013

Requirements

Before attempting SOLR discovery setup please make sure the following are correct:

  1. Tomcat is listening on TCP port 80.
  2. The SOLR webapp is correctly published.

Step 1

  1. ---------------------------------------------------------------#
  2. -----------------DISCOVERY CONFIGURATIONS----------------------#
  3. ---------------------------------------------------------------#
  4. Configuration properties used solely by the Discovery #
  5. faceted-search system. #
  6. ---------------------------------------------------------------#
          1. Search Indexing #####

search.server = http://localhost/solr/search

  1. Char used to ensure that the sidebar facets are case insensitive
  2. solr.facets.split.char=\n|||\n
  1. index.ignore-variants = false
  2. index.ignore-authority = false

index.projection=dc.title,dc.contributor.*,dc.date.issued

  1. ONLY-FOR-JSPUI:
  2. 1) you need to set the DiscoverySearchRequestProcessor in the dspace.cfg
  3. 2) to show facet on Site/Community/etc. you need to add a Site/Community/Collection
  4. Processors plugin in the dspace.cfg

NANO Editor Help
CTL+O = Save the file and then press Enter
CTL+X = Exit "nano"
CTL+K = Delete line
CTL+U = Undelete line
CTL+W = Search for %%string%%
CTL+\ = Search for %%string%% and replace with $$string$$
CTL+C = Show line numbers

More info = http://en.wikipedia.org/wiki/Nano_(text_editor)


Step 2

Please refer to the official DSpace documentation

Basically you have to edit the following file:

nano /home/dspace/source/dspace/config/spring/api/discovery.xml

Step 3

Type the following to rebuild the discovery index.

/home/dspace/bin/dspace update-discovery-index -b
Back to SOLR Discovery