How To Solve Issues Related to Log – Type contains a it is recommended not to include it within a type name

How To Solve Issues Related to Log – Type contains a it is recommended not to include it within a type name

Updated: Feb-20

Elasticsearch Version: 1.7-8.0

Background

Before you begin reading this guide try our beta Elasticsearch Health Check-Up it analyses JSON’s to provide personalized recommendations that can improve your clusters performance.


To troubleshoot log “Type contains a it is recommended not to include it within a type name” it’s important to understand a few problems related to Elasticsearch concepts index. See bellow important tips and explanations on these concepts

Log Context

Log”Type [{}] contains a ‘.’; it is recommended not to include it within a type name” classname is MapperService.java
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

             }
            if (mapper.type().contains(";")) {
                throw new InvalidTypeNameException("mapping type name [" + mapper.type() + "] should not include ';' in it");
            }
            if (mapper.type().contains(".") && !PercolatorService.TYPE_NAME.equals(mapper.type())) {
                logger.warn("Type [{}] contains a '.'; it is recommended not to include it within a type name"; mapper.type());
            }
            // we can add new field/object mappers while the old ones are there
            // since we get new instances of those; and when we remove; we remove
            // by instance equality
            DocumentMapper oldMapper = mappers.get(mapper.type());




Related issues to this log

We have gathered selected Q&A from the community and issues from Github, that can help fix related issues please review the following for further information :

1 Lint Error Parsing Error The Keywor  

Field Name Cannot Contain  

About Opster

Opster detects root causes of Elasticsearch problems, provides automated recommendations and can perform various actions to prevent issues and optimize performance

Find Configuration Errors

Analyze Now