|
|
@ -5,7 +5,7 @@ |
|
|
|
include_once(SERVER_ROOT . "/model/mBase.php"); |
|
|
|
|
|
|
|
class mEs extends mBase { |
|
|
|
public $es_host = '127.0.0.1'; |
|
|
|
public $es_host = '8.154.43.224'; |
|
|
|
public $es_port = 9200; |
|
|
|
public $es_index = ''; |
|
|
|
|
|
|
@ -82,7 +82,7 @@ class mEs extends mBase { |
|
|
|
$highlights = $v['highlight']["content"]; |
|
|
|
if(!empty($highlights)) { |
|
|
|
foreach($highlights as $k=>$val) { |
|
|
|
$weibo['text'] = str_replace($val, '<em class="highlight" style="color:green;">'.$val.'</em>', $weibo['text']); |
|
|
|
$weibo['text'] = str_replace($val, '<span class="highlight" style="color:red;backgroud:yellow;">'.$val.'</span>', $weibo['text']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|