All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
Info | ||
---|---|---|
| ||
You can disable hit highlighting / search snippets by commenting out the entire PLEASE BE AWARE there are two sections where this <property> definition existexists. You should comment out both. One is under the Alternatively, you can may also choose to tweak which fields are shown in hit highlighting, or modify the number of matching words shown (snippets) and/or number of characters shown around the matching word (maxSize). For this change to take effect in the User Interface, you will need to restart Tomcat. |
...
Code Block | ||
---|---|---|
| ||
<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.subject"/> <property name="snippets" value="5"/> </bean> <bean class="org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration"> <property name="field" value="dc.description.abstract"/> <!-- NumberMax number of characters to display around the matching word (Warning setting to 0 returns entire field) --> <property name="maxSize" value="250"/> <!-- Max number of snippets (matching words) to show --> <property name="snippets" value="2"/> </bean> <bean class="org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration"> <!-- Displays snippets from indexed full text of document (for supported formats) --> <property name="field" value="fulltext"/> <!-- Max number of characters to display around the matching word (Warning setting to 0 returns entire field) --> <property name="maxSize" value="250"/> <!-- Max number of snippets (matching words) to show --> <property name="snippets" value="2"/> </bean> </list> </property> </bean> </property> |
...