Multiple value support
This commit is contained in:
parent
3da2170e9f
commit
7f8497e12a
|
@ -213,8 +213,13 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
|
|||
for(MappingObject m : getMappings(useCaseDescriptor)){
|
||||
List<Object> foundValues = documentNavigator.getByPath(m.getPath());
|
||||
Object toSetValue=null;
|
||||
if(!foundValues.isEmpty())
|
||||
toSetValue=foundValues.get(0);
|
||||
if(!foundValues.isEmpty()) {
|
||||
// NB CSV for multiple values
|
||||
StringBuilder b=new StringBuilder();
|
||||
foundValues.forEach(v->b.append(v+","));
|
||||
b.deleteCharAt(b.length()-1);
|
||||
toSetValue = b.toString();
|
||||
}
|
||||
log.trace("Setting {} = {} in centroid doc ",m.getName(),toSetValue);
|
||||
centroidDoc.put(m.getName(),toSetValue);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue