else if (work instanceof UpdateLuceneWork ) {
buildDocument( work.getDocument(), serializer );
serializer.addUpdate( work.getEntityClass().getName(), toByteArray( work.getId() ), work.getFieldToAnalyzerMap() );
}
}
return serializer.serialize();
}
/**
* Convert a byte[] to a List of LuceneWork (assuming the same SerializationProvider is used of course)
*/