小编Ale*_*nko的帖子

Kibana 不搜索嵌套字段

使用 Elasticsearch/Kibana 并尝试搜索嵌套对象中的字段。但是,它似乎不起作用。这是我在模板中使用的映射:

{
  "order": 0,
  "template": "ss7_signaling*",
  "settings": {
    "index": {
      "mapping.total_fields.limit": 3000,
      "number_of_shards": "5",
      "refresh_interval": "30s"
  },
  "mappings": {
    "_default_": {
      "dynamic_templates": [
        {
          "string_fields": {
            "mapping": {
              "fielddata": {
                "format": "disabled"
              },
              "index": "no",
              "type": "string"
            },
            "match_mapping_type": "string",
            "match": "*"
          }
        }
      ],
      "properties": {
        "message": {
          "index": "not_analyzed",
          "type": "string"
        },
        "Protocol": {
          "index": "not_analyzed",
          "type": "string"
        },
        "IMSI": {
          "index": "not_analyzed",
          "type": "string"
        },
        "nested": {
            "type": "nested",
            "properties": {
                "name": {
                    "type": "string", …
Run Code Online (Sandbox Code Playgroud)

lucene elasticsearch kibana

4
推荐指数
1
解决办法
1952
查看次数

NodeJS WriteFile CreateWriteStream

好的.有这两个代码:

// first example
request(imageUrl).then((data) => {
  var wstream = fs.createWriteStream('doodle');
  wstream.write(data);
})
// second example
request(imageUrl).pipe(fs.createWriteStream('doodle2'));
Run Code Online (Sandbox Code Playgroud)

我尝试做的是将图像保存到磁盘.第二个例子很好.但我的问题是:两个例子都做同样的任务,但为什么它们会产生不同的结果呢?顺便说一句,这是示例中的请求 - 承诺模块.

stream request node.js

1
推荐指数
1
解决办法
6836
查看次数

标签 统计

elasticsearch ×1

kibana ×1

lucene ×1

node.js ×1

request ×1

stream ×1