perf: 优化ES模块
This commit is contained in:
@@ -14,6 +14,8 @@ use Illuminate\Support\Facades\Log;
|
||||
*/
|
||||
class ElasticSearchUserMsg extends ElasticSearchBase
|
||||
{
|
||||
const indexName = 'dialog_user_msg';
|
||||
|
||||
/**
|
||||
* 构造函数
|
||||
* @return ElasticSearchBase
|
||||
@@ -28,15 +30,6 @@ class ElasticSearchUserMsg extends ElasticSearchBase
|
||||
/** *********************************************** 基础 ************************************************** */
|
||||
/** ******************************************************************************************************** */
|
||||
|
||||
/**
|
||||
* 索引名称
|
||||
* @return string
|
||||
*/
|
||||
public static function indexName()
|
||||
{
|
||||
return "dialog_user_msg" . env("ES_INDEX_SUFFIX", "");
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建聊天系统索引 - 使用父子关系
|
||||
* @return array
|
||||
|
||||
Reference in New Issue
Block a user