ingest: don't render template twice for append processor

This commit is contained in:
Martijn van Groningen 2016-08-26 18:07:32 +02:00
parent 22242ec881
commit 48926b4d66
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public final class AppendProcessor extends AbstractProcessor {
Object value = ConfigurationUtils.readObject(TYPE, processorTag, config, "value");
TemplateService.Template compiledTemplate = ConfigurationUtils.compileTemplate(TYPE, processorTag,
"field", field, templateService);
return new AppendProcessor(processorTag, templateService.compile(field), ValueSource.wrap(value, templateService));
return new AppendProcessor(processorTag, compiledTemplate, ValueSource.wrap(value, templateService));
}
}
}