|
@ -140,9 +140,11 @@ public class SolrUtil {
|
|
|
|
|
|
//高亮
|
|
|
if (StringUtils.isNotEmpty(hl)) {
|
|
|
query.setHighlight(true);
|
|
|
query.addHighlightField(hl);
|
|
|
query.setHighlightSimplePre("<em>");
|
|
|
query.setHighlightSimplePost("</em>");
|
|
|
query.setHighlightFragsize(3000);
|
|
|
}
|
|
|
QueryResponse rsp = conn.query(query);
|
|
|
return rsp;
|