[~steve] gave all the needed information to have Hibernate Search support the Configuration-less ORM.
Most of the work has to be done in {{ HibernateSearchIntegrator }}
* Settings/configuration values are now available via either the {{ SessionFactory }} or the {{ ConfigurationService }} (which just holds the settings and exposes them in various type-safe ways). * "Mapping information" is {{ MetadataImplementor }} . Though tbh it sounds like you really just want/need Jandex. More precisely, something like : {code} metadata.getEntityBindings().foreach() { entityBinding.getEntity().getClassReference() } {code} * Make the SFObserver {{SFObserve}}r accept the serviceRegistry for the configuration service. * Make {{ SearchConfigurationFromHibernateCore }} read the needed data from the serviceRegistry (for {{ ConfigurationService }} ) and {{ Metadata }} for the list of mapped entities (see above). * {{ SearchConfigurationFromHibernateCore. getReflectionManager getReflectionManage}} isr no longer need to look in ORM as ORM no longer needs it.
|