public boolean updateId(long userId, DocumentUpdate changes) {
        boolean r = false;
        if (changes.isJobTitleChange()) {
            r = jobTitleIndex.modifyIdKey(changes.getOldJobTitle(), changes.getNewJobTitle(), userId);
        }
        if (changes.isIndustryChange()) {
            r = industryIndex.modifyIdKey(changes.getOldIndustry(), changes.getNewIndustry(), userId);
        }
        if (changes.isDelete()) {
            if (jobTitleIndex.containsId(changes.getOldJobTitle(), userId)
                    && industryIndex.containsId(changes.getOldIndustry(), userId)) {
                jobTitleIndex.removeId(changes.getOldJobTitle(), userId);
                industryIndex.removeId(changes.getOldIndustry(), userId);
                r = true;
            }
        }
        else if (changes.isInsert()) {
            if (jobTitleIndex.containsId(changes.getOldJobTitle(), userId)
                    && industryIndex.containsId(changes.getOldIndustry(), userId)) {
                jobTitleIndex.putId(changes.getNewJobTitle(), userId);
                industryIndex.putId(changes.getNewIndustry(), userId);
                r = true;
            }
        }
        return r;
    }