update SimilarityService.java: back to id=StringId