azure - `where * contains ` 和 `search` 在 KQL 中是同一个运算符吗?

标签 azure search contains kql azure-log-analytics

where * contains search KQL 中的相同运算符?

例如以下查询相同吗?

union *
| where * contains "foo"

union *
| search "foo"

我试图找到有关 search 的任何信息关键字,但什么也没找到,因为所有结果都被与关键字无关的东西污染了。看来人们通常使用这个词search以及任何与 KQL 相关的内容。

虽然我知道 where * contains "foo"将得到所有大小写敏感的结果 "foo"任何列的值。

我需要知道这个问题的答案,因为searchwhere * contains 短我想使用 search反而。但我不确定我是否会得到任何不同的行为。

最佳答案

我在我的环境中进行了复制,以下是我的观察结果:

是的,其中*包含“x”serach“x”类似,因为它具有类似的功能,但输出略有不同:

使用,其中*包含:

enter image description here

使用搜索:

enter image description here

在这里,您可以清楚地看到表中又添加了 1 个名为 $table 的列,我想说它们都具有类似的功能,但给出了不同的结果。

搜索的一个用途是您不需要使用管道 |运算符,如果您在如下表中搜索:

search in (Table name) "Error"

enter image description here

更多信息您可以引用search .

注意:

Where 用于在单个表中查找,where as 搜索将在特定集群中的所有表中查找

关于azure - `where * contains ` 和 `search` 在 KQL 中是同一个运算符吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/77079871/

相关文章:

azure - 如何使 2 个不同的 kubernetes 集群中的 2 个服务在 azure 中安全地相互通信?

api - 为什么 twitter 的自始至终参数不起作用?

case - 大写和小写在 Aws dynamoDB 中的 Contains 中不起作用?

algorithm - 检查相等性的巧妙算法

java - 在 eclipse 项目的引用库中搜索 .class 文件

sql - 包含条件的 sql 中的内连接

java - 检查句子是否包含某些单词

windows - 如何将 MS Access 驱动程序安装到我的 docker 镜像?或者还有其他方法可以解决这个问题吗?

c# - 如何连接Azure联合根数据库并在 Entity Framework DBContext中应用联合?

azure - 为 azure 创建部署凭据时出错