public void export(String toDirectory) throws IOException {
        var builder = new IndexschemaConfig.Builder();
        getConfig(builder);
        export(toDirectory, builder.build());
    }
Deriver of indexschema config containing information of all text index fields with name and data type.

@author geirst
config-model/src/main/java/com/yahoo/schema/derived/IndexSchema.java