Commit 5ac30a195e6cb9bbb8893b3af311acb8634a08e0
1 parent
c4cade2ade
Exists in
master
SEARCH-106: Add hightlighting to the ResultSet
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/main/java/org/alfresco/service/cmr/search/ResultSetSPI.java
... | ... | @@ -189,6 +189,12 @@ public interface ResultSetSPI<ROW extends ResultSetRow, MD extends ResultSetMeta |
189 | 189 | public Map<String, Integer> getFacetQueries(); |
190 | 190 | |
191 | 191 | /** |
192 | + * Gets the highlighting results. Returns a Map keyed by noderef. | |
193 | + * Each value is a pair of "fieldname" and a String array of highlight snippets | |
194 | + * @return the Map | |
195 | + */ | |
196 | + public Map<NodeRef, List<Pair<String, List<String>>>> getHighlighting(); | |
197 | + /** | |
192 | 198 | * Gets the spell check result |
193 | 199 | * |
194 | 200 | * @return SpellCheckResult | ... | ... |