• 2023-12-02ElasticSearch之Get index settings API
    获取指定索引的参数的值。获取指定索引的全部参数,命令样例如下:curl-XGET"https://localhost:9200/testindex_002/_settings?pretty"--cacert$ES_HOME/config/certs/http_ca.crt-u"elastic:ohCxPH=QBE+s5=*lo7F9"执行结果的样例,如下:{"testindex_002":{"
  • 2023-12-02ElasticSearch之Clone index API
    使用已有的索引,复制得到一个索引。关闭testindex_001的写入操作,命令样例如下:curl-XPUT"https://localhost:9200/testindex_001/_settings?pretty"-H'Content-Type:application/json'-d'{"settings":{"index.blocks.write":true}}
  • 2023-12-02ElasticSearch之Create index API
    创建指定名称的index。命令样例如下:curl-XPUT"https://localhost:9200/testindex_002?pretty"-H'Content-Type:application/json'-d'{"settings":{"index":{"number_of_shards":3,"number
  • 2023-12-02ElasticSearch之Clear cache API
    本方法用于清理缓存。命令样例如下:curl-XPOST"https://localhost:9200/testindex_001/_cache/clear?pretty"--cacert$ES_HOME/config/certs/http_ca.crt-u"elastic:ohCxPH=QBE+s5=*lo7F9"执行结果的样例,如下:{"_shards":{"total":2,