Good point, how did you notice this? I suspect the better way to implement this is to have Search use the new ORM's capability of "multi-get", and have OGM implement that operation effectively. Linking to HSEARCH-2088. N.B. Infinispan Query is already able to perform a multi-fetch; it doesn't use the hibernate-search-orm module though. |