Permalink
Browse files

DS-1907 Hit highlighting not working, no abstracts for search results

  • Loading branch information...
1 parent 8799f31 commit 16a9a0da5c8286edcb197c40fc4bf26339109593 @aschweer aschweer committed Feb 19, 2014
Showing with 26 additions and 0 deletions.
  1. +26 −0 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>

0 comments on commit 16a9a0d

Please sign in to comment.