Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #480 from aschweer/DS-1907-hit-highlighting

DS-1907 Hit highlighting not working, no abstracts for search results
  • Loading branch information...
commit e610bb12b394ab2d1b5a13dbae1832246e8d7fe0 2 parents a03f59b + 16a9a0d
@helix84 helix84 authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 dspace/config/spring/api/discovery.xml
View
26 dspace/config/spring/api/discovery.xml
@@ -235,6 +235,32 @@
<property name="useAsHomePage" value="false"/>
</bean>
</property>
+ <property name="hitHighlightingConfiguration">
+ <bean class="org.dspace.discovery.configuration.DiscoveryHitHighlightingConfiguration">
+ <property name="metadataFields">
+ <list>
+ <bean class="org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration">
+ <property name="field" value="dc.title"/>
+ <property name="snippets" value="5"/>
+ </bean>
+ <bean class="org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration">
+ <property name="field" value="dc.contributor.author"/>
+ <property name="snippets" value="5"/>
+ </bean>
+ <bean class="org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration">
+ <property name="field" value="dc.description.abstract"/>
+ <property name="maxSize" value="250"/>
+ <property name="snippets" value="2"/>
+ </bean>
+ <bean class="org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration">
+ <property name="field" value="fulltext"/>
+ <property name="maxSize" value="250"/>
+ <property name="snippets" value="2"/>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
<!-- When true a "did you mean" example will be displayed, value can be true or false -->
<property name="spellCheckEnabled" value="true"/>
</bean>
Please sign in to comment.
Something went wrong with that request. Please try again.