We are distinguishing between optimize all or optimize the index of a given entity (see also SearchFactory. OptimizeLuceneWork also makes this distinction. However, it gets lost during serialization. All OptimizeLuceneWork instances get "translated" into optimize all. This is an error in the serialization contract itself. org.hibernate.search.indexes.serialization.spi.Serializer contains only addOptimizeAll. For this reason it applied for all serialization implementations.
|