赞
踩
在ES的组件kibana中创建所以
PUT /indexTest005
{
"settings" :
{
"number_of_shards" : 1,
"number_of_replicas" : 0
}
}
创建时报如下内容:
{ "error": { "root_cause": [ { "type": "invalid_index_name_exception", "reason": "Invalid index name [indexTest005], must be lowercase", "index_uuid": "_na_", "index": "indexTest005" } ], "type": "invalid_index_name_exception", "reason": "Invalid index name [indexTest005], must be lowercase", "index_uuid": "_na_", "index": "indexTest005" }, "status": 400 }
从404的内容中可以看到,“invalid index name [indexTest005],must be lowercase”,默认索引的名称必须是小写,将indexTest005中的大写T改成小写,就可以创建索引。
报错的例图:
争创创建的例图:
才华不溢,梦想依旧
唯心沉淀,遨游宇宙
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。