zoukankan      html  css  js  c++  java
  • Elasticsearch查询Index以及删除

    查询Index信息

    GET /bank HTTP/1.1
    Host: localhost:9200

    {
    "bank": {
    "aliases": {},
    "mappings": {
    "_doc": {
    "properties": {
    "account_number": {
    "type": "long"
    },
    "address": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "age": {
    "type": "long"
    },
    "balance": {
    "type": "long"
    },
    "city": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "email": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "employer": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "firstname": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "gender": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "lastname": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "state": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    }
    }
    }
    },
    "settings": {
    "index": {
    "creation_date": "1552962656704",
    "number_of_shards": "5",
    "number_of_replicas": "1",
    "uuid": "l45mhl-7QNibqbmbi2Jmbw",
    "version": {
    "created": "6060199"
    },
    "provided_name": "bank"
    }
    }
    }
    }

  • 相关阅读:
    2017-10-11seowhy记录
    2017.8.23创业项目方向
    西安项目分析
    创业方法
    做seowhy官网需要三个人
    2017.8.2 高级长尾编辑技巧
    Golang 任务队列策略 -- 读《JOB QUEUES IN GO》
    Go 到底有没有引用传参(对比 C++ )
    使用xorm工具,根据数据库自动生成 go 代码
    golang的Channel
  • 原文地址:https://www.cnblogs.com/chucklu/p/10564941.html
Copyright © 2011-2022 走看看