String array becomes String after index

The String array becomes String after it is indexed. Bug should be introduced by MR 649

To illustrate the problem, I used one example from Augmenter Configuration that has String array attributes.

  • Storage Format of part of data payload: image
  • Index (document) Format of part of data payload returned by method in class StorageIndexerPayloadMapper
 public Map<String, Object> mapDataPayload(ArrayList<String> asIngestedCoordinatesPaths, IndexSchema storageSchema, Map<String, Object> storageRecordData,
                                              String recordId) {
        Map<String, Object> dataCollectorMap = new HashMap<>();
        //..
        mapDataPayload(storageSchema.getDataSchema(), storageRecordData, recordId, dataCollectorMap);
        //...
        return dataCollectorMap;
    }

image

  • Search result before re-index from local indexer service with the MR 649: image
  • Search result after re-index from local indexer service with the MR 649: image
Edited by Zhibin Mai