弹性搜索:在内部必须多种或条件,而不是按预期工作
让我通过不同的情况来解释我的问题。
通过此查询,没有应用过滤器,我将收到两个程序的结果(每个程序都属于每个不同的索引):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
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:
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):
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在第二个查询中喜欢,但是没有
global.success:1
http-down-burst检验
。PS:您应该共享文本代码而不是屏幕截图,因为复制/粘贴查询更容易。手动重新测试一切不是一个好时光投资;-)
You should do like in your second query, but without the
globales.success: 1
restriction onhttp-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 ;-)