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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2012/10/30 10:16:11 UTC

[jira] [Comment Edited] (OAK-403) PropertyIndexLookup does not find indexes

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

Alex Parvulescu edited comment on OAK-403 at 10/30/12 9:14 AM:
---------------------------------------------------------------

> do we need the reindex = true settings in the initial content?
I think the problem is the index def is added on the initial content at a moment when there are no IndexHooks available yet. I think it's safer to mark as 'reindex required' to go around this initialization issue.

> The indexing hook should (or at least could) be smart enough to automatically trigger initial indexing when a new index definition is added.
It already does that (by marking the reindex=true on the new definitions so they can be picked-up for reindexing), but this does not cover the small window at startup when there are no OndexHoosk available yet (see above).

                
      was (Author: alex.parvulescu):
    > do we need the reindex = true settings in the initial content?
I think the problem is the index def is added on the initial content at a moment when there are no IndexHooks available yet. I think it's safer to mark as 'reindex required' to go around this initialization issue.
                  
> PropertyIndexLookup does not find indexes
> -----------------------------------------
>
>                 Key: OAK-403
>                 URL: https://issues.apache.org/jira/browse/OAK-403
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.5
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>         Attachments: OAK-403.patch, OAK-403.patch
>
>
> The PropertyIndexLookup tries to locate the index by child node name instead of matching the name of the property with the values of the 'propertyNames' property on the index node.
> In addition the paths returned by the find() method are not absolute. This will result in an IllegalArgumentException when the path is turned into a Tree.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira