Elasticsearch 6 建立索引報錯 invalid_index_name_exception Invalid index name [testDemo], must be lowercase
Elasticsearch 6 建立索引報錯:
Invalid index name [testDemo], must be lowercase
原因:Elasticsearch 6 預設索引型別是_doc,如果想改變則要指定索引型別
示例:
PUT testDemo
{
"mappings": {
"properties": {
"name": {
"type": "text"
},
"location": {
"type": "geo_point"
}
}
}
}
返回:
{
"error": {
"root_cause": [
{
"type": "invalid_index_name_exception",
"reason": "Invalid index name [testDemo], must be lowercase",
"index_uuid": "_na_",
"index": "testDemo"
}
],
"type": "invalid_index_name_exception",
"reason": "Invalid index name [testDemo], must be lowercase",
"index_uuid": "_na_",
"index": "testDemo"
},
"status": 400
}
指定索引型別:
PUT testDemo
{
"mappings": {
"product": {
"properties": {
"name": {
"type": "text"
},
"location": {
"type": "geo_point"
}
}
}
}
}
結果:
{
"acknowledged" : true,
"shards_acknowledged" : true,
"index" : "testDemo"
}
product為指定索引型別
相關文章
- ElasticSearch建立索引Elasticsearch索引
- Elasticsearch之索引模板index template與索引別名index aliasElasticsearch索引Index
- IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokensExceptionHTTP
- python報錯:TypeError: slice indices must be integers or None or have an __index__ methodPythonErrorNoneIndex
- ElasticSearch 倒排索引(Inverted Index)| 什麼是倒排索引?Elasticsearch索引Index
- mongodb 重複建立索引不報錯MongoDB索引
- 【報錯】elasticsearch 報錯blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]ElasticsearchBloCORBIndexdeleteAPI
- raksmart伺服器部署SSL報錯:ERR_CERT_COMMON_NAME_INVALID伺服器
- zt_如何加速索引index建立索引Index
- npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefineNPMError
- mongodb報錯:the limit must be specified as a number。MongoDBMIT
- elasticsearch(三)----索引建立與刪除Elasticsearch索引
- Elasticsearch5.x建立索引(Java)ElasticsearchH5索引Java
- python建立elasticsearch索引的探討PythonElasticsearch索引
- 加快建立索引(create / rebuild index) 的幾點索引RebuildIndex
- ElasticSearch分片互動過程(建立索引、刪除索引、查詢索引)Elasticsearch索引
- 【Azure Service Bus】建立 ServiceBus 的Terraform指令碼報錯GetAuthorizationRule: Invalid inputORM指令碼
- Elasticsearch 6.x 倒排索引與分詞Elasticsearch索引分詞
- ORA-01658建立表或索引報錯分析索引
- mysql下建立索引讓其index全掃描MySql索引Index
- Creating an Index Online - 線上建立索引Index索引
- iOS 上架報錯 This bundle is invalid 或 Invalid Image PathiOS
- React報錯之Element type is invalidReact
- mybatis 報錯: Invalid bound statement (not found)MyBatis
- index索引Index索引
- 安裝Tomcat 5 出現Invalid index!錯誤求救TomcatIndex
- 【Elasticsearch】Elasticsearch 索引模板Elasticsearch索引
- 小程式 · 報錯:Error: errCode: -501007 ,errMsg: Invalid Key Name (__keyPath)Error
- Elasticsearch6.2.4-利用head外掛建立索引Elasticsearch索引
- Elasticsearch索引。Elasticsearch索引
- Qt 報錯 “類名”does not name a typeQT
- 小程式報錯Invoke event bindViewTap in page: pages/index/indexViewIndex
- TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯Error
- Elasticsearch Query DSL建立滾動索引(生命週期策略)Elasticsearch索引
- 建約束(Constraint)時隱式建立索引(Index)及先建立索引後建立約束的區別AI索引Index
- ElasticSearch 索引 VS MySQL 索引Elasticsearch索引MySql
- 分割槽索引之本地(local index)索引和全域性索引(global index)索引Index
- Homestead 啟動 elasticsearch 報錯Elasticsearch