Class 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 Detail

      • DiscoveryHitHighlightFieldConfiguration

        public DiscoveryHitHighlightFieldConfiguration()
    • 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