public static Serializable getDocumentId(SearchFactoryImplementor searchFactoryImplementor, Class<?> clazz, Document document, ConversionContext conversionContext) {
final DocumentBuilderIndexedEntity<?> builderIndexedEntity = getDocumentBuilder(
searchFactoryImplementor,
clazz
);
final TwoWayFieldBridge fieldBridge = builderIndexedEntity.getIdBridge();
final String fieldName = builderIndexedEntity.getIdKeywordName();
try {
return (Serializable) conversionContext
.setClass( clazz )
.pushIdentifierProperty()