You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Federico Grilli (Jira)" <ji...@apache.org> on 2025/05/22 10:30:00 UTC
[jira] [Commented] (JCR-5151) Allow custom ConsistencyCheck in SearchIndex of repository configuration
[ https://issues.apache.org/jira/browse/JCR-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953399#comment-17953399 ]
Federico Grilli commented on JCR-5151:
--------------------------------------
I submitted a patch created against 2.20 branch which seems to be working fine, i.e. current unit tests pass, as well as local manual testing with a running instance of my webapp.
> Allow custom ConsistencyCheck in SearchIndex of repository configuration
> ------------------------------------------------------------------------
>
> Key: JCR-5151
> URL: https://issues.apache.org/jira/browse/JCR-5151
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Affects Versions: 2.20.16, 2.22.0
> Reporter: Federico Grilli
> Priority: Major
> Attachments: JCR-5151_Provide_an_interface_for_ConsistencyCheck.patch
>
>
>
> In our application we would need to extend the default JR ConsistencyCheck in order to apply some custom logic. Unfortunately this is not possible at the moment.
> It would be great to be able to define a custom ConsistencyCheck simply by declaring it in a repo config, e.g.
> {code:java}
> <SearchIndex class="foo.bar.MySearchIndex">
> [...]
> <param name="consistencyCheckClass" value="foo.bar.MyConsistencyCheck" />
> </SearchIndex>{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)