* @throws YardException would be really bad if after successfully indexing
* about 8 millions of documents we get an error from the yard at the
* last possible opportunity :(
*/
private void writeCacheBaseConfiguration() throws YardException {
FieldMapper baseMapper = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
log.info("Write BaseMappings for geonames.org Cache");
log.info(" > Mappings");
for(String mapping : GeoNamesIndexer.fieldMappings){
log.info(" - "+mapping);
baseMapper.addMapping(FieldMappingUtils.parseFieldMapping(mapping));
}
CacheUtils.storeBaseMappingsConfiguration(yard, baseMapper);
log.info(" < completed");
}