The KnowledgeBase is under development and has been made viewable to the user communities to allow for content contributions and feedback. Please post your content in the appropriate section and/or feedback in the comments section located at the bottom of each page.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Change the fields listed in your DSpace Advanced Search page

In this section you will learn you to add or remove fields on the advanced search page. You will need to edit the files dspace.cfg and message.xml then reindex and restart DSpace

Add/Remove Advanced Search fields in dpsace.cfg

Open dspace.cfg and find the heading "##### Fields to Index for Search #####"  Scrolling down you will see uncommented lines that read " search.index.1 =..." this is where you will edit and add lines.  
The search commands are written as "search.index.# = [name]:[schema].[element].[qualifier]"

  • The name section is used to group together fields within advanced search, for example the name "author" is used three times for the fields dc.contributor, dc.creator, and dc.description.statementofresponsibility- when a user does an advanced search by author all three fields will be searched.
  • Qualifiers can be replaced with "" and all occurrences that element will be searched regardless of qualifiers, for example "dc.title." indexes both dc.title and dc.title.alternative.

Add Headings to message.xml

Open message.xml and find the heading

Re-index and Restart DSpace

Before existing items can be searched or browsed you need to re-index you instance. 

Navigate to cd /usr/local/dspace/bin then type"./dspace index-init".  After your index has finished indexing restart DSpace.

This section was contributed by Catalina Oyler from the Five Colleges of Ohio
  • No labels