Failed to find default-mapping json in the classpath using the default template – How to solve this Elasticsearch error

Opster Team

Aug-23,

Log Context

Log “failed to find default-mapping.json in the classpath; using the default template” classname is MapperService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         } else {
            defaultMappingUrl = getMappingUrl(indexSettings; environment; defaultMappingLocation;"default-mapping.json";"org/elasticsearch/index/mapper/default-mapping.json");
        }

        if (defaultMappingUrl == null) {
            logger.info("failed to find default-mapping.json in the classpath; using the default template");
            if (index.getName().equals(ScriptService.SCRIPT_INDEX)){
                defaultMappingSource =  "{" +
                        "\"_default_\"": {"" +

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?