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 "Ravi Kiran Papani (JIRA)" <ji...@apache.org> on 2016/06/28 16:54:57 UTC

[jira] [Commented] (OAK-4517) sub-rooted index definition not respecting the includedPaths

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

Ravi Kiran Papani commented on OAK-4517:
----------------------------------------

During the discussion with [~catholicon], it looks like sub rooted index definition isn't respecting the absolute includedPaths. we've tried to modify the includedPaths to use relative to the index definition as
{code:xml}
            includedPaths="[/blog,/support]"
{code}
Then it worked.

cc: [~catholicon], [~chetanm]

> sub-rooted index definition not respecting the includedPaths
> ------------------------------------------------------------
>
>                 Key: OAK-4517
>                 URL: https://issues.apache.org/jira/browse/OAK-4517
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>    Affects Versions: 1.2.14
>            Reporter: Ravi Kiran Papani
>
> I've created an sub-rooted index definition at /content/geometrixx/en as follows
> {code:xml}
>     <oak:index jcr:primaryType="nt:unstructured">
>         <cqPageLucene
>             jcr:primaryType="oak:QueryIndexDefinition"
>             async="async"
>             compatVersion="{Long}2"
>             includedPaths="[/content/geometrixx/en/blog,/content/geometrixx/en/support]"
>             indexPath="/content/geometrixx/en/oak:index/cqPageLucene"
>             name="cq:Page"
>             reindex="{Boolean}false"
>             reindexCount="{Long}2"
>             type="lucene">
>             <aggregates jcr:primaryType="nt:unstructured">
>                 <cq:Page jcr:primaryType="nt:unstructured">
>                     <include0
>                         jcr:primaryType="nt:unstructured"
>                         path="jcr:content"
>                         relativeNode="{Boolean}true"/>
>                 </cq:Page>
>                 <nt:file jcr:primaryType="nt:unstructured">
>                     <include0
>                         jcr:primaryType="nt:unstructured"
>                         path="jcr:content"
>                         relativeNode="{Boolean}false"/>
>                 </nt:file>
>                 <cq:PageContent jcr:primaryType="nt:unstructured">
>                     <include0
>                         jcr:primaryType="nt:unstructured"
>                         path="*"
>                         relativeNode="{Boolean}false"/>
>                     <include1
>                         jcr:primaryType="nt:unstructured"
>                         path="*/*"
>                         relativeNode="{Boolean}false"/>
>                     <include2
>                         jcr:primaryType="nt:unstructured"
>                         path="*/*/*"
>                         relativeNode="{Boolean}false"/>
>                     <include3
>                         jcr:primaryType="nt:unstructured"
>                         path="*/*/*/*"
>                         relativeNode="{Boolean}false"/>
>                 </cq:PageContent>
>             </aggregates>
>             <indexRules jcr:primaryType="nt:unstructured">
>                 <cq:Page jcr:primaryType="nt:unstructured">
>                     <properties jcr:primaryType="nt:unstructured">
>                         <cqLastModified
>                             jcr:primaryType="nt:unstructured"
>                             name="jcr:content/cq:lastModified"
>                             ordered="{Boolean}true"
>                             propertyIndex="{Boolean}true"
>                             type="Date"/>
>                         <jcrTitle
>                             jcr:primaryType="nt:unstructured"
>                             analyzed="{Boolean}true"
>                             name="jcr:content/jcr:title"
>                             ordered="{Boolean}false"
>                             propertyIndex="{Boolean}true"
>                             type="String"
>                             useInSuggest="{Boolean}true"/>
>                     </properties>
>                 </cq:Page>
>             </indexRules>
>         </cqPageLucene>
>     </oak:index>
> {code}
> when I'm trying to execute the query "/jcr:root/content/geometrixx/en/blog//element(*, cq:Page)[rep:suggest('le')]/(rep:suggest())" , It's using the correct definition but the results are not coming. 



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