Class DiscoveryHitHighlightFieldConfiguration
java.lang.Object
org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration
Configuration class that holds hit highlighting configuration for a single metadata field
- Author:
- Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField()intintGet the maximum number of highlighted snippets to generate per fieldvoidvoidsetMaxSize(int maxSize) voidsetSnippets(int snippets) Set the maximum number of highlighted snippets to generate per field
-
Constructor Details
-
DiscoveryHitHighlightFieldConfiguration
public DiscoveryHitHighlightFieldConfiguration()
-
-
Method Details
-
getField
-
setField
-
getMaxSize
public int getMaxSize() -
setMaxSize
public void setMaxSize(int maxSize) -
setSnippets
public void setSnippets(int snippets) Set the maximum number of highlighted snippets to generate per field- Parameters:
snippets- the number of maximum snippets
-
getSnippets
public int getSnippets()Get the maximum number of highlighted snippets to generate per field- Returns:
- maximum number of highlighted snippets to generate per field
-