弹性搜索和“子查询” [英] Elastic Search and "sub queries"

查看:112
本文介绍了弹性搜索和“子查询”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在弹性搜索中执行子查询吗?



我正在找到文档列表(通常约为5-20个文档)。对于我想执行搜索的每个文档,为他们提供一些自定义字段。



每个文档都是一个属性,我想分析发现每个属性的周边属性,以评估周围财产的平均价格。



谢谢

解决方案

否,弹性搜索不支持子查询。



您应该可以使用ID查询:

http://www.elasticsearch.org/guide/ reference / query-dsl / ids-query.html


Can you perform a subquery in Elastic Search?

I am finding a list of documents (usually about 5-20 documents). For each of the documents I'd like to perform a search to come up with some custom fields for them.

Each document is a property, and, I want to analyze surrounding properties for each property found in order to evaluate the average price of properties around it.

Thanks

解决方案

No, Elastic Search doesn't support subqueries.

You should be able to do this with an IDs query:
http://www.elasticsearch.org/guide/reference/query-dsl/ids-query.html

这篇关于弹性搜索和“子查询”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆