Sanne/hibernate-search — comment on commit 4f1763027d95daa21706ac7981c330a941a446a2
File: hibernate-search-engine/src/main/java/org/hibernate/search/cfg/SearchMapping.java line 55
By Sanne:

I use in in Query to start the SessionFactory with at least the known entities. Remember I don't have annotation scanning there, so the SearchFactory reboots internally (using the mutable one) every time a new entity is found.

Using this I can pre-start the SearchFactory already knowing at least the mapped types.