]
Gustavo Fernandes updated ISPN-11712:
-------------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Indexing configured via XML should be automatically enabled if the
'enabled' attribute is missing
-------------------------------------------------------------------------------------------------
Key: ISPN-11712
URL:
https://issues.redhat.com/browse/ISPN-11712
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying, Remote Querying
Affects Versions: 11.0.0.Dev03
Reporter: Nistor Adrian
Assignee: Nistor Adrian
Priority: Major
Fix For: 11.0.0.Dev05
The 'enabled' attribute has a default of 'false' in xsd, which is fine
for all purposes when indexing is not configured for a cache. Indexing should generally
not be enabled by default as it is costly, unless the <indexing> element is present
and the 'enabled' attributive was omitted (and if the a tribute was not omitted,
then we do what the attribute says).
Also, this auto-enabling based on <indexing> element presence should only be
performed since schema ver. 11.
Programmatic config is not going to be affected by this; `enable()` will have to be
called explicitly.