After custom index is created, queries on cq:PageContent always giving no results. When I delete the custom index, I am able to see the results.
Below is the custom index I created. Can someone help me in identifying what went wrong with the below index which is blocking cq:PageContent to produce search results?
<websiteSearch jcr:primaryType="oak:QueryIndexDefinition" async="async" compatVersion="{Long}2" evaluatePathRestrictions="{Boolean}true" includedPaths="[/content/mysite]" indexPath="/oak:index/websiteSearch" name="cq:Page" reindex="{Boolean}false" reindexCount="{Long}5" 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> <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"> <headingText jcr:primaryType="nt:unstructured" analyzed="{Boolean}true" name="headingText" propertyIndex="{Boolean}true"/> <headline jcr:primaryType="nt:unstructured" analyzed="{Boolean}true" name="headline"/> <bodycopy jcr:primaryType="nt:unstructured" analyzed="{Boolean}true" name="jcr:content/bodycopy"/> <tags jcr:primaryType="nt:unstructured" analyzed="{Boolean}true" name="jcr:content/cq:tags"/> <title jcr:primaryType="nt:unstructured" analyzed="{Boolean}true" name="jcr:content/jcr:title"/> <lastModified jcr:primaryType="nt:unstructured" name="jcr:content/cq:lastModified" ordered="{Boolean}true"/> <mysiteAuthor jcr:primaryType="nt:unstructured" analyzed="{Boolean}true" name="jcr:content/mysiteAuthor"/> <hideInSearch jcr:primaryType="nt:unstructured" name="jcr:content/hideInSearch" nullCheckEnabled="{Boolean}true" propertyIndex="{Boolean}true"/> <blocktitle jcr:primaryType="nt:unstructured" analyzed="{Boolean}true" name="jcr:content/blocktitle"/> <originalPublishedDate jcr:primaryType="nt:unstructured" name="jcr:content/originalPublishedDate" ordered="{Boolean}true"/> <pageType jcr:primaryType="nt:unstructured" name="jcr:content/pageType" propertyIndex="{Boolean}true"/> </properties> </cq:Page> </indexRules> </websiteSearch>