Merge pull request #141 from atmire/DS-1395

[DS-1395] Hit highlighting not operational
This commit is contained in:
helix84
2012-11-22 05:01:21 -08:00

View File

@@ -1654,7 +1654,7 @@ public class SolrServiceImpl implements SearchService, IndexingService {
if(solrQueryResponse.getHighlighting() != null)
{
Map<String, List<String>> highlightedFields = solrQueryResponse.getHighlighting().get(dso.getHandle());
Map<String, List<String>> highlightedFields = solrQueryResponse.getHighlighting().get(dso.getType() + "-" + dso.getID());
if(MapUtils.isNotEmpty(highlightedFields))
{
//We need to remove all the "_hl" appendix strings from our keys