Versions Compared

Key

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

...

  • indexFieldName (Required): A unique search filter field name, the metadata will be indexed under this field name
  • metadataFields (Required): A list containing the metadata fields which can be used in this filter
  • fullAutoComplete (optional): If set to true the values indexed for autocomplete will not be tokenized, if set to false tokenization will occur. Tokenization is the process of breaking up text strings in individual words. In this case, with tokenization activated, a title like "Medical Guidelines" will respond both to the "M" and to the "G", because both words are indexed individually for auto-completion.
  • type (optional): the type of the search filter it can either be date or text, if none is defined text will be used.
    • text: The metadata will be treated as is
    • date: With a type of date the dates will receive the following format: yyyy-MM-dd (2011-07-01)

Sort option customization for search results

This section explains the properties of an individual SortConfiguration, like sortTitle and sortDateIssued from the default configuration. In order to create custom sort options, you can either modify specific properties of those that already exist or create a totally new one from scratch.

Here's what the sortTitle SortConfiguration looks like:

Code Block
langxml
<bean id="sortTitle" class="org.dspace.discovery.configuration.DiscoverySortConfiguration">
        <property name="metadataField" value="dc.title"/>
        <property name="type" value="text"/>
 </bean>

The id & class attributes are mandatory for this type of bean. The properties that it contains are discussed below.

  • metadataField (Required): The metadata field indicating the sort values
  • defaultSort (Optional): A boolean indicating which sort filter should be the default one.
  • type (optional): the type of the sort option can either be date or text, if none is defined text will be used.

Advanced SOLR Configuration

...