| In this particular case (single result, multiple classes), when one calls org.hibernate.search.query.hibernate.impl.AbstractLoader.load(List<EntityInfo>), it calls org.hibernate.search.query.hibernate.impl.MultiClassesQueryLoader.executeLoad(List<EntityInfo>) which in turn calls org.hibernate.search.query.hibernate.impl.AbstractLoader.load(EntityInfo). Problem: both load methods increment statistics, so we end up incrementing the object loading stats by 2 instead of 1. Test case and fix coming. |