Class DiscoveryHitHighlightFieldConfiguration
- java.lang.Object
-
- org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration
-
public class DiscoveryHitHighlightFieldConfiguration extends Object
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 Constructor Description DiscoveryHitHighlightFieldConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetField()intgetMaxSize()intgetSnippets()Get the maximum number of highlighted snippets to generate per fieldvoidsetField(String field)voidsetMaxSize(int maxSize)voidsetSnippets(int snippets)Set the maximum number of highlighted snippets to generate per field
-
-
-
Method Detail
-
getField
public String getField()
-
setField
@Autowired(required=true) public void setField(String field)
-
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
-
-