public void export(String toDirectory) throws IOException {
        var builder = new ImportedFieldsConfig.Builder();
        getConfig(builder);
        export(toDirectory, builder.build());
    }
This class derives imported fields from search definition and produces imported-fields.cfg as needed by the search backend.

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