public void export(String toDirectory) throws IOException {
        var builder = new JuniperrcConfig.Builder();
        getConfig(builder);
        export(toDirectory, builder.build());
    }
Constructs a new juniper rc instance for a given search object.
This will derive the configuration automatically,
so there is no need to call {@link #derive(Schema)}.

@param schema the search model to use for deriving
config-model/src/main/java/com/yahoo/schema/derived/Juniperrc.java