perf: 优化ES模块

This commit is contained in:
kuaifan
2025-03-08 11:04:43 +08:00
parent 58cb49b125
commit ed8e443f3a
3 changed files with 35 additions and 23 deletions

View File

@@ -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