You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/11/29 05:27:58 UTC

[jira] [Comment Edited] (OAK-5176) Allow configuring ignoreReindexFlags on per IndexUpdate basis

    [ https://issues.apache.org/jira/browse/OAK-5176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704251#comment-15704251 ] 

Chetan Mehrotra edited comment on OAK-5176 at 11/29/16 5:27 AM:
----------------------------------------------------------------

[patch|^OAK-5176-v1.patch] for the same

[~alex.parvulescu] Please review. 

*Caveats*
Ignoring the reindexing flag and proceeding with incremental index is only to be done for case like hybrid indexes. There the implementation would have to take care that it works with a known previous index definition. 

This would be done by ensuring that in such a mode only those indexes are updated locally which are being tracked by the IndexTracker. So editor would only be returned for such index paths and editor would work with IndexDefinition as present in IndexTracker and not with the one derived from the current NodeState


was (Author: chetanm):
[patch|^OAK-5176-v1.patch] for the same

[~alex.parvulescu] Please review. 

> Allow configuring ignoreReindexFlags on per IndexUpdate basis
> -------------------------------------------------------------
>
>                 Key: OAK-5176
>                 URL: https://issues.apache.org/jira/browse/OAK-5176
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: core
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: OAK-5176-v1.patch
>
>
> Currently {{IndexUpdate}} provides a system property {{oak.indexUpdate.ignoreReindexFlags}} to ignore reindex flag on global basis. 
> For indexing external changes as part of hybrid index we need a way to disable reindex handling for per IndexUpdate basis i.e. for IndexUpdate used for indexing external change the ignoreReindexFlags would need to be set to true. This would ensure that for hybrid index case reindex logic is disabled and only incremental indexing is done.
> This would also provide a benefit where in case an index is being reindexed the hybrid index would still get updated with incremental indexing. Currently if reindexing happens then whole async index cycle waits for reindex to complete. Due to this any new change to system in between does not get indexed and query results become stale. With hybrid index and ignoring of reindex flag the local index would still receive updates and search results would not get stale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)