Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="673c0edc6d400515-5cfb5f54-420f450f-87c1b998-cc1a3ca0f7312a30e1fc2818"><ac:plain-text-body><![CDATA[

Command used:

[dspace]/bin/dspace index-init

]]></ac:plain-text-body></ac:structured-macro>

Java class:

org.dspace.browse.IndexBrowse

Arguments short and long forms):

Description

-r or -rebuild

Should we rebuild all the indexes, which removes old tables and creates new ones. For use with -f. Mutually exclusive with -d

-s or -start

-s <int> start from this index number and work upwards (mostly only useful for debugging). For use with -t and -f

-x or -execute

Execute all the remove and create SQL against the database. For use with -t and -f

-i or -index

Actually do the indexing. Mutually exclusive with -t and -f.

-o or -out

-o <filename> write the remove and create SQL to the given file. For use with -t and -f

-p or -print

Write the remove and create SQL to the stdout. For use with -t and -f.

-t or -tables

Create the tables only, do no attempt to index. Mutually exclusive with -f and -i

-f or -full

Make the tables, and do the indexing. This forces -x. Mutually exclusive with -f and -i.

-v or -verbose

Print extra information to the stdout. If used in conjunction with -p, you cannot use the stdout to generate your database structure.

-d or -delete

Delete all the indexes, but do not create new ones. For use with -f. This is mutually exclusive with -r.

-h or -help

Show this help documentation. Overrides all other arguments.

...

  • Add new browse indexes besides the four that are delivered upon installation. Examples:
    • Series
    • Specific subject fields (Library of Congress Subject Headings.(It is possible to create a browse index based on a controlled vocabulary or thesaurus.)
    • Other metadata schema fields
  • Combine metadata fields into one browse
  • Combine different metadata schemas in one browse

Examples of new browse indexes that are possible. (The system administrator is reminded to read the section on

...

Browse Index Configuration)

  • Add a Series Browse. You want to add a new browse using a previously unused metadata element.
    • webui.browse.index.6 = series:metadata:dc.relation.ispartofseries:text:single
    _
    • Note: the index # need to be adjusted to your browse stanza in the _dspace.cfg_ file. Also, you will need to update your Messages.properties file.
  • Combine more than one metadata field into a browse. You may have other title fields used in your repository. You may only want one or two of them added, not all title fields. And/or you may want your series to file in there.
    • webui.browse.index.3 = title:metadata:dc.title,dc:title.uniform,dc:relation.ispartofseries:title:full
  • Separate subject browse. You may want to have a separate subject browse limited to only one type of subject.
    • webui.browse.index.7 = lcsubject.metdata:dc.subject.lcsh.text:single
      As one can see, the choices are limited only by your metadata schema, the metadata, and your imagination.

Remember to run index-init after adding any new definitions in the dspace.cfg to have the indexes created and the data indexed.