Class HighlightEntry<T>
java.lang.Object
org.springframework.data.solr.core.query.result.HighlightEntry<T>
Highlight result entry holding reference to domain object as well as the highlights
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHighlight holds reference to the field highlighting was applied to, as well as the snipplets -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSnipplets(String fieldname, List<String> snipplets) voidaddSnipplets(Field field, List<String> snipplets) Get the entity the highlights are associated to
-
Constructor Details
-
HighlightEntry
- Parameters:
entity- must not be null
-
-
Method Details
-
getEntity
Get the entity the highlights are associated to- Returns:
-
getHighlights
- Returns:
- empty collection if none available
-
addSnipplets
- Parameters:
field-snipplets-
-
addSnipplets
- Parameters:
fieldname-snipplets-
-