弹性搜索和“子查询” [英] Elastic Search and "sub queries"
问题描述
我正在找到文档列表(通常约为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屋!