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_\"": {"" +

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.