[ https://issues.apache.org/jira/browse/OAK-4517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vikas Saurabh resolved OAK-4517. -------------------------------- Resolution: Won't Fix Added a few tests in [r1750664|https://svn.apache.org/r1750664]. Updated docs at [r1750665|https://svn.apache.org/r1750665]. Resolving as won't fix as it's tricky to implement what's probably more intuitive... and the work-around isn't hard (as documented). > includedPaths, excludedPaths for sub root index definition need to be relative > ------------------------------------------------------------------------------ > > Key: OAK-4517 > URL: https://issues.apache.org/jira/browse/OAK-4517 > Project: Jackrabbit Oak > Issue Type: Bug > Components: lucene > Reporter: Ravi Kiran Papani > Assignee: Vikas Saurabh > Labels: docs-impacting > > 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)