弹性搜索:在内部必须多种或条件,而不是按预期工作

发布于 2025-01-29 08:10:02 字数 981 浏览 4 评论 0原文

让我通过不同的情况来解释我的问题。

通过此查询,没有应用过滤器,我将收到两个程序的结果(每个程序都属于每个不同的索引):confess-chrome&& HTTP-DOWN-BURST测试

如果我应用“应该内部必须” boolean查询,在我对每个程序中相同的限制,我也会收到两个程序的结果,但是正如预期的那样,现在的平均值值1:

但是,在同一查询中,如果我仅将限制应用于其中一个程序( confess-chrome ),那么我没有收到其他程序的结果( http-down-burst测试):

如果我通过程序的分开限制在A内部应该查询,为什么我只收到一个程序而不是另一个程序的结果?

我应该如何构建查询以接收两个 confess-chrome (受globals.success = 1 )和 http-down-down-burst-的结果测试没有任何限制?

Let me explain my problem through the different cases I have.

With this query, with no filters applied, I receive results for both programs (each one belonging to each different index): confess-chrome && http-down-burst-test
First case

If I apply a "should inside must" boolean query, where I apply same restriction to each program, I also receive results for both programs, but as expected, the average now has a value of 1:
Second case

But, in the same last query, if I apply the restriction for only one of the programs (confess-chrome), then I don't receive results for the other program (http-down-burst-test):
Third case

If my separated restrictions by program are inside a should query, why I only receive results for one program and not the other?

How should I build my query in order to receive results for both confess-chrome (restricted with globales.success=1) and for http-down-burst-tests without any restrictions applied?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别闹i 2025-02-05 08:10:02

您应该在第二个查询中喜欢,但是没有global.success:1 http-down-burst检验

PS:您应该共享文本代码而不是屏幕截图,因为复制/粘贴查询更容易。手动重新测试一切不是一个好时光投资;-)

You should do like in your second query, but without the globales.success: 1 restriction on http-down-burst-test.

PS: You should share textual code instead of screenshots, as it's easier to copy/paste queries. Retyping everything manually is not a good time investment ;-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文