Good afternoon,

with an application that makes use of oak, we hard-coded index
definitions during repository initialisation as we had to achieve the
following requirements during repository initialisation/start-up/upgrade

- if the index is there and nothing changed nothing should happen on the
index node.

- if the current index definition has type=disabled the InitialContent
won't touch the existing one

- if the index definition has changed, we apply the new definition and
automatically issue a re-index

- if the index definition is not there, we apply the new one and issue a
re-index

As the index definition in oak are defined with a proper node type
(oak:QueryIndexDefinition) we thought it would be a good idea to enhance
the current JackrabbitVaultPackaging[0] to consider this special use
case. Something link what we currently do for the rep:User[1] (I guess).

0) http://jackrabbit.apache.org/filevault/overview.html
1) http://goo.gl/38B7MQ (DocViewSAXImporter L636)

Thoughts?

Cheers
Davide


Reply via email to