org.dspace.discovery.configuration
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoveryHitHighlightFieldConfiguration
public DiscoveryHitHighlightFieldConfiguration()
getField
public String getField()
setField
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
Copyright © 2012 DuraSpace. All Rights Reserved.