this.geoConfig = geoConfig;
}
public static Directory buildGeoDirectory(Directory dir, GeoSearchConfig geoConfig) {
DeletePairedExtensionDirectory pairedDirectory = new DeletePairedExtensionDirectory(dir);
for (String pairedExtension: geoConfig.getPairedExtensionsForDelete()) {
pairedDirectory.addExtensionPairing(pairedExtension, geoConfig.getGeoFileExtension());
}
return pairedDirectory;
}