@Override public void postProcess(MapperService mapperService) { super.postProcess(mapperService); if (id != null) { addValue(IdFieldMapper.NAME, id); } if (type != null) { addValue(TypeFieldMapper.NAME, type); } if (type != null && id != null) { addValue(UidFieldMapper.NAME, Uid.createUid(type, id)); } } }
@Override public void postProcess(MapperService mapperService) { super.postProcess(mapperService); if (id != null) { addValue(IdFieldMapper.NAME, id); } if (type != null) { addValue(TypeFieldMapper.NAME, type); } if (type != null && id != null) { addValue(UidFieldMapper.NAME, Uid.createUid(type, id)); } } }
@Override public void postProcess(MapperService mapperService) { super.postProcess(mapperService); if (id != null) { addValue(IdFieldMapper.NAME, id); } if (type != null) { addValue(TypeFieldMapper.NAME, type); } if (type != null && id != null) { addValue(UidFieldMapper.NAME, Uid.createUid(type, id)); } }
@Override public void postProcess(MapperService mapperService) { super.postProcess(mapperService); if (id != null) { addValue(IdFieldMapper.NAME, id); } if (type != null) { addValue(TypeFieldMapper.NAME, type); } if (type != null && id != null) { addValue(UidFieldMapper.NAME, Uid.createUid(type, id)); } } }
public void postProcess(MappedFieldType fieldType) { if (uid != null) { switch (field) { case UidFieldMapper.NAME: addValue(field, uid.toString()); case IdFieldMapper.NAME: addValue(field, uid.id()); case TypeFieldMapper.NAME: addValue(field, uid.type()); } } if (fieldsValues == null) { return; } List<Object> fieldValues = fieldsValues.get(fieldType.names().indexName()); if (fieldValues == null) { return; } for (int i = 0; i < fieldValues.size(); i++) { fieldValues.set(i, fieldType.valueForSearch(fieldValues.get(i))); } } }