I have created custom lucene index for my website and want to make this custom lucene index part of the maven build.
I have created folder _oak_index and placed below custom index and updated my filter.xml file
But while maven build I am getting below error.
[ERROR] 1 error(s) detected during dependency analysis.
[ERROR] Filter root's ancestor '/oak:index' is not covered by any of the specified dependencies.
Please do not include a custom index within /oak:index into your deployment package(s), because it will cause a reindex on every deployment. And this will hurt you on every deployment if your repo is exceeding a few gigabytes.
Rather use EnsureOakIndex  to control the deployment of new and modified index definitions.