String typesStr = entityTypesCache.get(id);
if (typesStr != null) {
for (String type : typesStr.split(","))
types.add(type);
}
entities.add(new EntityLexicalEntry(query, query, Collections.singleton(e.name), new ValueFormula<NameValue>(new NameValue(id, e.name)), EntrySource.FBSEARCH, e.score, distance, types, tokenEditDistanceFeatures));
}
return entities;
}