elasticsearch - ELASTICSEARCH-多个字段上的Filter_path

标签 elasticsearch

是否可以在多个字段上创建filter_path?
我尝试这样做:

GET company/_search?filter_path=hits.hits._search&filter_path=hits.hits._search._sort
但只返回字段“hits.hits._search._sort”

最佳答案

我不知道hits.hits._search是什么。但是您肯定可以包括几个字段,即:

GET company/_search?filter_path=hits.hits.sort,hits.hits._source.title,hits.hits._id

关于elasticsearch - ELASTICSEARCH-多个字段上的Filter_path,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63411802/

相关文章:

linux - 在 _interactive_ docker 启动之前,docker 容器似乎有失败的/etc/hosts

ElasticSearch:过滤深度嵌套的数据

amazon-web-services - 如何在 AWS ES 中启用动态脚本?

elasticsearch - Elasticsearch:检查GeoPoint是否存在于多个圆的半径内

elasticsearch - 用Elasticsearch搜索/滚动异步等待

ruby-on-rails - ElasticSearch 处理带有嵌套对象的 Rails 路由参数

elasticsearch - numeric_detection和dynamic_templates之间的优先级

c# - ElasticSearch .net GeoDistance过滤器不起作用

elasticsearch - 分析器是否会阻止字段突出显示?

elasticsearch - Elasticsearch将日期与斜杠字符匹配