SOLR-6263: Add DIH handler name to variable resolver as ${dih.handlerName}

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2014-07-21 17:26:14 +00:00
parent 0901f25e20
commit ea00cf4e6c
2 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,8 @@ New Features
* SOLR-6258: Added onRollback event handler hook to Data Import Handler (DIH).
(ehatcher)
* SOLR-6263: Add DIH handler name to variable resolver as ${dih.handlerName}. (ehatcher)
Bug Fixes
----------------------

View File

@ -125,6 +125,7 @@ public class DocBuilder {
}
indexerNamespace.put(INDEX_START_TIME, dataImporter.getIndexStartTime());
indexerNamespace.put("request", new HashMap<>(reqParams.getRawParams()));
indexerNamespace.put("handlerName", dataImporter.getHandlerName());
for (Entity entity : dataImporter.getConfig().getEntities()) {
Map<String, Object> entityNamespace = new HashMap<>();
String key = SolrWriter.LAST_INDEX_KEY;