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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2015/01/22 10:29:35 UTC

[jira] [Commented] (OAK-2310) [Property Index] Adding new propertyName to an existing index doesn't update index to reflect the same

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

Davide Giannella commented on OAK-2310:
---------------------------------------

I personally think that a re-index in case of index definition changes
is the proper solution.

What could be done on the oak side is adding a protected property to
the {{oak:QueryIndexDefinition}} for identifying a state of the index
itself.

It could be then marked with a commit hook in case of changes of the
in the index definition. The lookup will inspect this property then
for understanding if the index is "ready" to serve queries or not.

For example, if a user changes the index definition the commithook
add/change the protected property {{status=dirty}}.

The lookup+strategy will then serve {{Infinity}} as a cost during
index selection.

Once the re-index is complete the property is set again to
{{status=clean}} or removed.

Thoughts?


> [Property Index] Adding new propertyName to an existing index doesn't update index to reflect the same
> ------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-2310
>                 URL: https://issues.apache.org/jira/browse/OAK-2310
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>    Affects Versions: 1.0.7
>            Reporter: Vikas Saurabh
>            Assignee: Thomas Mueller
>            Priority: Critical
>             Fix For: 1.1.6
>
>
> It seems intuitive to add multiple property names to a given property index. But, currently, adding a new {{propertyName}} to an existing index doesn't update indexed content to reflect the newly added property name.



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