perf: 优化全文搜索

This commit is contained in:
kuaifan
2025-04-18 00:46:59 +08:00
parent fe84f812e7
commit f258dcfca2
3 changed files with 66 additions and 36 deletions
+9
View File
@@ -238,6 +238,15 @@ class ZincSearchBase
return (new self())->request("/api/{$index}/_search", $body);
}
/**
* 兼容ES查询文档
*/
public static function elasticSearch($index, $searchParams): array
{
$body = json_encode($searchParams);
return (new self())->request("/es/{$index}/_search", $body);
}
/**
* 多索引查询
*/