Question content:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [article : {properties={id={index=not_analyzed, store=true, type=long}, title={analyzer=standard, index=analyzed, store=true, type=text}, content={analyzer=standard, index=analyzed, store=true, type=text}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [article : {properties={id={index=not_analyzed, store=true, type=long}, title={analyzer=standard, index=analyzed, store=true, type=text}, content={analyzer=standard, index=analyzed, store=true, type=text}}}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [article : {properties={id={index=not_analyzed, store=true, type=long}, title={analyzer=standard, index=analyzed, store=true, type=text}, content={analyzer=standard, index=analyzed, store=true, type=text}}}]"
}
},
"status": 400
}
Wrong configuration
{
"mappings": {
"article": {
"properties": {
"id": {
"type": "long",
"store": true,
"index":"not_analyzed"
},
"title": {
"type": "text",
"store": true,
"index":"analyzed",
"analyzer":"standard"
},
"content": {
"type": "text",
"store": true,
"index":"analyzed",
"analyzer":"standard"
}
}
}
}
}
Modify configuration
{
"mappings": {
"properties": {
"id": {
"type": "long",
"store": true
},
"title": {
"type": "text",
"store": true,
"analyzer":"standard"
},
"content": {
"type": "text",
"store": true,
"analyzer":"standard"
}
}
}
}
Cause of problem: ES7 adjustment for configuration
Read More:
- [Elasticsearch] es 7.12 Root mapping definition has unsupported parameters: _all
- org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file
- Errors encountered by elasticsearch in creating index and mapping
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- This application has no explicit mapping for /error, so you are seeing this as a fallback (How to Fix)
- Failed to get HbA FCP target mapping in lanfree backup
- Error 3002: Problem in mapping fragments | c# linq to entities
- #error identifier-list parameters may only be used in a function definition
- System and host port mapping under virtualbox
- VTK notes — texture mapping
- Apawn class, add axis mapping to control apawn movement
- Explanation of port mapping in dlink
- yaml.scanner.ScannerError: mapping values are not allowed here
- [SharePoint] after deploying webpart, the solution to the resource file in the layouts mapping directory referenced by webpart cannot be found
- Prompt SQL server error 15023 solution memo when modifying user mapping
- RuntimeError: Couldn‘t open shared file mapping: <torch_16716_3565374679>, error code: <1455>
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context
- Type definition error – one of the causes of type definition errors is WM in Oracle_ Concat function usage
- Error reported when Windows builds docker image: failed to create LLB definition: 403 Forbidden
- AttributeError: ‘Settings’ object has no attribute ‘ROOT_URLCONF’