Fix explicit mapping value extraction

This commit is contained in:
Fabio Sinibaldi 2022-10-24 16:15:38 +02:00
parent bcd32848ac
commit 3da2170e9f
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,7 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
if(!foundValues.isEmpty())
toSetValue=foundValues.get(0);
log.trace("Setting {} = {} in centroid doc ",m.getName(),toSetValue);
centroidDoc.put(m.getName(),foundValues.get(0));
centroidDoc.put(m.getName(),toSetValue);
}
log.info("Inserting Centroid {} into {} ",centroidDoc.toJson(),indexer);
@ -322,6 +322,7 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
log.trace("Mapping is {} ",mappingObj);
MappingObject m = Serialization.convert(mappingObj,MappingObject.class);
m.validate();
mappingObjects.add(m);
}
}
return mappingObjects;