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] [Created] (OAK-4517) sub-rooted index definition not
respecting the includedPaths
Ravi Kiran Papani created OAK-4517:
--------------------------------------
Summary: 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)