Code Distillery ~ FileVault Oak Re-Index Hook

A Jackrabbit FileVault package install hook implementation that observes whether Oak index definitions have changed and marks them for re-indexing.

License

License

Categories

Categories

Net Dex General Purpose Libraries Utility
GroupId

GroupId

net.distilledcode
ArtifactId

ArtifactId

filevault-oak-reindex-hook
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Code Distillery ~ FileVault Oak Re-Index Hook
A Jackrabbit FileVault package install hook implementation that observes whether Oak index definitions have changed and marks them for re-indexing.
Project URL

Project URL

https://github.com/code-distillery/filevault-oak-reindex-hook
Project Organization

Project Organization

Code Distillery
Source Code Management

Source Code Management

https://github.com/code-distillery/filevault-oak-reindex-hook

Download filevault-oak-reindex-hook

How to add to project

<!-- https://jarcasting.com/artifacts/net.distilledcode/filevault-oak-reindex-hook/ -->
<dependency>
    <groupId>net.distilledcode</groupId>
    <artifactId>filevault-oak-reindex-hook</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/net.distilledcode/filevault-oak-reindex-hook/
implementation 'net.distilledcode:filevault-oak-reindex-hook:1.0.2'
// https://jarcasting.com/artifacts/net.distilledcode/filevault-oak-reindex-hook/
implementation ("net.distilledcode:filevault-oak-reindex-hook:1.0.2")
'net.distilledcode:filevault-oak-reindex-hook:jar:1.0.2'
<dependency org="net.distilledcode" name="filevault-oak-reindex-hook" rev="1.0.2">
  <artifact name="filevault-oak-reindex-hook" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.distilledcode', module='filevault-oak-reindex-hook', version='1.0.2')
)
libraryDependencies += "net.distilledcode" % "filevault-oak-reindex-hook" % "1.0.2"
[net.distilledcode/filevault-oak-reindex-hook "1.0.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.jackrabbit.vault : org.apache.jackrabbit.vault jar 3.1.18
org.slf4j : slf4j-api jar 1.7.12
javax.jcr : jcr jar 2.0

test (6)

Group / Artifact Type Version
junit : junit jar 4.12
org.apache.jackrabbit : oak-jcr jar 1.2.2
org.apache.jackrabbit : oak-lucene jar 1.2.2
org.apache.jackrabbit : jackrabbit-spi-commons jar 2.10.1
commons-io : commons-io jar 2.4
ch.qos.logback : logback-classic jar 1.1.2

Project Modules

There are no modules declared in this project.

Jackrabbit File Vault InstallHook for Oak Indexes

The module contains an InstallHook implementation for content-packages that contain index definitions.

It helps to trigger a reindex when necessary but not otherwise, when a package containing Oak index definitions is installed.

#Usage

To use this index hook:

  • create a content package with index definitions (e.g. below /oak:index)
  • include the hook jar file in META-INF/vault/hooks
  • install the content-package

The hook manages the properties reindex and reindexCount on an index definition. So it makes sense to avoid using these two properties in the content package.

Reindexing is triggered if an index definition has changed. I.e. if the definition node or any of its descendants was added, modified or deleted.

Maven Coordinates

<dependency>
    <groupId>net.distilledcode</groupId>
    <artifactId>filevault-oak-reindex-hook</artifactId>
    <version><!-- latest version --></version>
</dependency>

To find the latest version available, please look on Maven Central.

Versions

Version
1.0.2
1.0.0