Fix explicit mapping value extraction
This commit is contained in:
parent
bcd32848ac
commit
3da2170e9f
|
@ -216,7 +216,7 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
||||||
if(!foundValues.isEmpty())
|
if(!foundValues.isEmpty())
|
||||||
toSetValue=foundValues.get(0);
|
toSetValue=foundValues.get(0);
|
||||||
log.trace("Setting {} = {} in centroid doc ",m.getName(),toSetValue);
|
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);
|
log.info("Inserting Centroid {} into {} ",centroidDoc.toJson(),indexer);
|
||||||
|
@ -322,6 +322,7 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
||||||
log.trace("Mapping is {} ",mappingObj);
|
log.trace("Mapping is {} ",mappingObj);
|
||||||
MappingObject m = Serialization.convert(mappingObj,MappingObject.class);
|
MappingObject m = Serialization.convert(mappingObj,MappingObject.class);
|
||||||
m.validate();
|
m.validate();
|
||||||
|
mappingObjects.add(m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return mappingObjects;
|
return mappingObjects;
|
||||||
|
|
Loading…
Reference in New Issue