According to station B black horse programmer’s es video tutorial operation, because the version used is the latest version, encountered in the video did not appear in the error.
Address:
http://127.0.0.1:9200/blog
Request body:
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 1
},
"mappings": {
"hello": {
"properties": {
"id": {
"type": "long",
"store": true
},
"title": {
"type": "text",
"store": true,
"index": true,
"analyzer":"standard"
},
"content": {
"type": "text",
"store": true,
"index": true,
"analyzer":"standard"
}
}
}
}
}
Error message:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [hello : {properties={id={store=true, type=long}, title={analyzer=standard, index=true, store=true, type=text}, content={analyzer=standard, index=true, store=true, type=text}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [hello : {properties={id={store=true, type=long}, title={analyzer=standard, index=true, store=true, type=text}, content={analyzer=standard, index=true, store=true, type=text}}}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [hello : {properties={id={store=true, type=long}, title={analyzer=standard, index=true, store=true, type=text}, content={analyzer=standard, index=true, store=true, type=text}}}]"
}
},
"status": 400
}
Solution: after the request address, add?include_ type_ name=true
http://127.0.0.1:9200/blog?include_type_name=true
result:
{
"acknowledged": true,
"shards_acknowledged": true,
"index": "blog"
}
Read More:
- Error in creating index by Google elasticsearch head plug-in
- Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:
- Elasticsearch in Spring uses Spel to dynamically create Index of Documet class
- Troubleshooting of errors in installing elasticsearch
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context
- Solution to errors reported by TES command in vscode – errors reported by typescript command
- Methods of modifying index and columns names by dataframe in pandas
- Talking about the errors encountered in installing MySQL ODBC (error 1918)
- elasticsearch NoClassDefFoundError error creating RestHighLevelClient bean
- Compilation errors and warnings encountered in QT and their solutions
- [SharePoint] after deploying webpart, the solution to the resource file in the layouts mapping directory referenced by webpart cannot be found
- A series of errors encountered in connecting to the database using Oracle SQL developer
- Creating Server TCP listening socket 127.0.0.1:6379: bind: No error。。。 Solutions to problems encountered in startup
- [Solved] Es delete all the data in the index without deleting the index structure, including curl deletion
- On set in pandas_ Index and reset_ Usage of index
- Common errors reported by Eureka in spring cloud
- Pymong adds a unique index pymongo. Errors. Duplicatekeyerror
- pymongo.errors.DuplicateKeyError: E11000 duplicate key error collection: anjuke.ershoufang index
- VIDEOIO ERROR: V4L: can’t open camera by index 0
- Errors encountered when integrating activiti6 with springboot