USearch 是专门为实体查询设计的 SPL 语法,深度集成在云监控 2.0 中,支持全文检索、精确查找、条件过滤、字段下钻等能力,并具备智能打分排序(基于 IDF 权重和列权重)。基础语法结构为:
.entity with(
domain='domain_pattern', -- 域过滤
type='type_pattern', -- 类型过滤
query='search_query', -- 查询条件
topk=10 -- 最大返回条数
)
典型场景包括:
-- 全文搜索
.entity with(query='web service')
-- 字段限定搜索
.entity with(query='status:running')
-- 逻辑组合查询
.entity with(query='environment:prod AND status:error')
-- 域和类型过滤
.entity with(domain='apm', type='apm.service', query='production')
特性上支持全文、字段限定、AND/OR/NOT 逻辑组合,以及对特殊字符的自动处理,是实体查询的默认入口。




