Package org.dspace.discovery
Class DiscoverResult.IndexableObjectHighlightResult
java.lang.Object
org.dspace.discovery.DiscoverResult.IndexableObjectHighlightResult
- Enclosing class:
- DiscoverResult
An utility class to represent the highlighting section of a Discovery Search
-
Constructor Summary
ConstructorsConstructorDescriptionIndexableObjectHighlightResult(IndexableObject idxObj, Map<String, List<String>> highlightResults) -
Method Summary
Modifier and TypeMethodDescriptionAll the matching snippets in whatever metadata ignoring any authority valuegetHighlightResults(String metadataKey) The matching snippets for a specific metadata ignoring any authority valueReturn the indexable object that the highlighting snippets refer to
-
Constructor Details
-
IndexableObjectHighlightResult
public IndexableObjectHighlightResult(IndexableObject idxObj, Map<String, List<String>> highlightResults)
-
-
Method Details
-
getIndexableObject
Return the indexable object that the highlighting snippets refer to- Returns:
- the indexable object
-
getHighlightResults
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
-
getHighlightResults
All the matching snippets in whatever metadata ignoring any authority value- Returns:
- All the matching snippets
-