首页 > 解决方案 > ELASTICSEARCH - 带有反斜杠的 Filter_path 查询

问题描述

我试图通过filter_path获取带有反斜杠的字段中的值,但它不返回任何内容。

GET mike/_search?filter_path=hits.hits._source.data.add.ces.info
    {
      "hits" : {
        "hits" : [
          {
            "_source" : {
              "data" : [
                {
                  "add" : [
                    {
                      "ces" : [
                        {
                          "info" : "{\"@color\": \"red\",\"state\": 
                          {\"@state\": \"open\", \"@reason\": \"null\"}}"
                        }

GET mike/_search?filter_path=hits.hits._source.data.add.ces.info.@color
{}

如何使用反斜杠访问信息并将其显示在我的屏幕上?

标签: elasticsearch

解决方案


推荐阅读