On 1 August 2014 14:34, Brian Stansberry <brian.stansberry(a)redhat.com> wrote:
On 8/1/14, 5:58 AM, Sanne Grinovero wrote:
> Currently users wishing for Search super-powers in their Hibernate
> applications need to enable the module explicitly.
>
> This seems to be rather annoying, and we have questions like this one:
> -
https://community.jboss.org/thread/243346
>
> I see no reasons to not enable it by default, following the same
> activation rules of other Hibernate dependencies: it's very
> conservative about not auto-enabling itself when not needed.
>
> May I open such a feature request? Happy to try the patching myself.
>
Would there be some configuration mechanism for users to turn this off?
Yes, just set "hibernate.search.autoregister_listeners" to "false".
This property is read as any other Hibernate / JPA configuration
properties, so could be set globally at boot of the JVM or in the
scope of a specific Hibernate instance.
But that's just an extreme emergency button, as it won't trigger if
entities are not marked with Search specific annotations.
-- Sanne
--
Brian Stansberry
Senior Principal Software Engineer
JBoss by Red Hat
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev