This commit is contained in:
baifuyu 2023-12-22 20:45:37 +08:00
parent 13eb346384
commit 34b8b72e2e
2 changed files with 6 additions and 9 deletions

View File

@ -40,14 +40,6 @@ public abstract class BaseSPGRecord extends BaseRecord implements WithSPGTypeEnu
return rawPropertyValueMap;
}
public Map<String, Object> getStdPropertyValueMap() {
Map<String, Object> stdPropertyValueMap = new HashMap<>(getProperties().size());
for (BasePropertyRecord propertyRecord : getProperties()) {
stdPropertyValueMap.put(propertyRecord.getName(), propertyRecord.getValue().getStds());
}
return stdPropertyValueMap;
}
public Map<String, String> getStdStrPropertyValueMap() {
Map<String, String> stdStrPropertyValueMap = new HashMap<>(getProperties().size());
for (BasePropertyRecord propertyRecord : getProperties()) {

View File

@ -22,7 +22,9 @@ import com.antgroup.openspg.cloudext.interfaces.searchengine.model.idx.record.Id
import com.google.common.collect.Lists;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@SuppressWarnings({"rawtypes", "unchecked"})
public class SPGRecord2IdxServiceImpl implements SPGRecord2IdxService {
@Override
@ -36,6 +38,9 @@ public class SPGRecord2IdxServiceImpl implements SPGRecord2IdxService {
new IdxRecordAlterItem(
item.getAlterOp(),
new IdxRecord(
spgRecord.getName(), spgRecord.getId(), 0.0, spgRecord.getStdPropertyValueMap())));
spgRecord.getName(),
spgRecord.getId(),
0.0,
(Map) spgRecord.getStdStrPropertyValueMap())));
}
}