Class HighlightEntry<T>

java.lang.Object
org.springframework.data.solr.core.query.result.HighlightEntry<T>

public class HighlightEntry<T> extends Object
Highlight result entry holding reference to domain object as well as the highlights
  • Constructor Details

    • HighlightEntry

      public HighlightEntry(T entity)
      Parameters:
      entity - must not be null
  • Method Details

    • getEntity

      public T getEntity()
      Get the entity the highlights are associated to
      Returns:
    • getHighlights

      public List<HighlightEntry.Highlight> getHighlights()
      Returns:
      empty collection if none available
    • addSnipplets

      public void addSnipplets(Field field, List<String> snipplets)
      Parameters:
      field -
      snipplets -
    • addSnipplets

      public void addSnipplets(String fieldname, List<String> snipplets)
      Parameters:
      fieldname -
      snipplets -