class SearchIndexUpdateHelper {

    public void modifyTagsInSearchIndex(List<TagEntity> tagEntityList, String modificationType)
    {
        List<Long> tagIds = new ArrayList<>();
        tagEntityList.forEach(tagEntity -> tagIds.add(tagEntity.getId()));
        processMessage(jsonHelper.objectToJson(new SearchIndexUpdateDto(MESSAGE_TYPE_TAG_UPDATE, tagIds, modificationType)));
    }

}