Package org.dspace.discovery
Class DiscoverResult.IndexableObjectHighlightResult
- java.lang.Object
-
- org.dspace.discovery.DiscoverResult.IndexableObjectHighlightResult
-
- Enclosing class:
- DiscoverResult
public static final class DiscoverResult.IndexableObjectHighlightResult extends Object
An utility class to represent the highlighting section of a Discovery Search
-
-
Constructor Summary
Constructors Constructor Description IndexableObjectHighlightResult(IndexableObject idxObj, Map<String,List<String>> highlightResults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>getHighlightResults()All the matching snippets in whatever metadata ignoring any authority valueList<String>getHighlightResults(String metadataKey)The matching snippets for a specific metadata ignoring any authority valueIndexableObjectgetIndexableObject()Return the indexable object that the highlighting snippets refer to
-
-
-
Constructor Detail
-
IndexableObjectHighlightResult
public IndexableObjectHighlightResult(IndexableObject idxObj, Map<String,List<String>> highlightResults)
-
-
Method Detail
-
getIndexableObject
public IndexableObject getIndexableObject()
Return the indexable object that the highlighting snippets refer to- Returns:
- the indexable object
-
getHighlightResults
public List<String> getHighlightResults(String metadataKey)
The matching snippets for a specific metadata ignoring any authority value- Parameters:
metadataKey- the metadata where the snippets have been found- Returns:
- the matching snippets
-
-