【问题标题】:Elasticsearch / Kibana QueriesElasticsearch / Kibana 查询
【发布时间】:2016-11-22 20:52:18
【问题描述】:

如何在 Kibana / ES 中搜索百分比。我有具有 %7e 的 URL,我想查询它们。但是,它总是显示“未找到结果”。有什么想法吗?

【问题讨论】:

    标签: elasticsearch kibana


    【解决方案1】:

    您是否尝试过使用 not_analyzed 字段?

    尝试这样的映射:

    {
      "template": "*",
      "settings": {
        "number_of_shards": 1,
        "number_of_replicas": 0
      },
      "mappings": {
        "_default_": {
          "dynamic_templates": [{
            "string_fields": {
              "match": "*",
              "match_mapping_type": "string",
              "mapping": {
                "type": "string",
                "fields": {
                  "raw": {
                    "type": "string",
                    "index": "not_analyzed"
                  }
                }
              }
            }
          }]
        }
      }
    }
    

    然后您可以查询名称为[fieldname].raw 的字段。也许这有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多