mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
DS-4166 community feedback: postpone support for highlighting over authority controlled metadata
This commit is contained in:
@@ -186,13 +186,10 @@ public class DiscoverResult {
|
||||
public static final class IndexableObjectHighlightResult {
|
||||
private IndexableObject indexableObject;
|
||||
private Map<String, List<String>> highlightResults;
|
||||
private Map<String, List<String[]>> highlightResultsWithAuthority;
|
||||
|
||||
public IndexableObjectHighlightResult(IndexableObject idxObj, Map<String, List<String>> highlightResults,
|
||||
Map<String, List<String[]>> highlightResultsWithAuthority) {
|
||||
public IndexableObjectHighlightResult(IndexableObject idxObj, Map<String, List<String>> highlightResults) {
|
||||
this.indexableObject = idxObj;
|
||||
this.highlightResults = highlightResults;
|
||||
this.highlightResultsWithAuthority = highlightResultsWithAuthority;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -215,17 +212,6 @@ public class DiscoverResult {
|
||||
return highlightResults.get(metadataKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* The matching snippets for a specific metadata including the authority value if any
|
||||
*
|
||||
* @param metadataKey
|
||||
* the metadata where the snippets have been found
|
||||
* @return the matching snippets
|
||||
*/
|
||||
public List<String[]> getHighlightResultsWithAuthority(String metadataKey) {
|
||||
return highlightResultsWithAuthority.get(metadataKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* All the matching snippets in whatever metadata ignoring any authority value
|
||||
*
|
||||
|
Reference in New Issue
Block a user