public void setClasspathRoot(String classpathRoot) {
        // For compatibility reasons, we need to convert "/classpathroot" to "classpathroot"
        if (classpathRoot.startsWith("/")) {
            this.classpathRoot = classpathRoot.substring(1, classpathRoot.length());
        } else {

            this.classpathRoot = classpathRoot;
        }
    }
public void setClasspathRoot ( String classpathRoot ) { if ( classpathRoot . startsWith ( "/" ) ) { this . classpathRoot = classpathRoot . substring ( 1 , classpathRoot . length ( ) ) ; } else { this . classpathRoot = classpathRoot ; } }
Classpath root for index and mapping files (default : /es)
<p>Example :</p>
<pre>
{@code
<property name="classpathRoot" value="/es" />
}
</pre>
That means that the factory will look in es folder to find index and mappings settings.
<br>So if you want to define a mapping for the _doc type in the twitter index, you
should put a _doc.json file under /es/twitter/ folder.
@param classpathRoot Classpath root for index and mapping files
@see #setMappings(String[])