<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lucene Index for Querybuilder query in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540776#M134286</link>
    <description>&lt;P&gt;Create oak:index for properties which has dynamic values&amp;nbsp;&lt;SPAN&gt;country, locale and id.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;create&amp;nbsp;_oak_index folder inside "project/ui.apps\src\main\content\jcr_root"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;in content.xml, add below properties which you want to index&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:rep="internal"&lt;BR /&gt;    jcr:mixinTypes="[rep:AccessControllable]"&lt;BR /&gt;    jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;    &amp;lt;socialLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;cmLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;slingeventJob/&amp;gt;&lt;BR /&gt;    &amp;lt;jcrLanguage/&amp;gt;&lt;BR /&gt;    &amp;lt;cqPageLucene-custom-1&lt;BR /&gt;        jcr:primaryType="oak:QueryIndexDefinition"&lt;BR /&gt;        async="[async,nrt]"&lt;BR /&gt;        compatVersion="{Long}2"&lt;BR /&gt;        evaluatePathRestrictions="{Boolean}true"&lt;BR /&gt;        excludedPaths="[/var,/etc/replication,/etc/workflow/instances,/jcr:system]"&lt;BR /&gt;        reindex="{Boolean}false"&lt;BR /&gt;        reindexCount="{Long}2"&lt;BR /&gt;        seed="{Long}-900421530849754201"&lt;BR /&gt;        type="lucene"&amp;gt;&lt;BR /&gt;        &amp;lt;aggregates jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;            &amp;lt;cq:Page jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;include0&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="jcr:content"&lt;BR /&gt;                    relativeNode="{Boolean}true"/&amp;gt;&lt;BR /&gt;            &amp;lt;/cq:Page&amp;gt;&lt;BR /&gt;            &amp;lt;nt:file jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;include0&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="jcr:content"/&amp;gt;&lt;BR /&gt;            &amp;lt;/nt:file&amp;gt;&lt;BR /&gt;            &amp;lt;cq:PageContent jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;include0&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*"/&amp;gt;&lt;BR /&gt;                &amp;lt;include1&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*/*"/&amp;gt;&lt;BR /&gt;                &amp;lt;include2&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*/*/*"/&amp;gt;&lt;BR /&gt;                &amp;lt;include3&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*/*/*/*"/&amp;gt;&lt;BR /&gt;            &amp;lt;/cq:PageContent&amp;gt;&lt;BR /&gt;        &amp;lt;/aggregates&amp;gt;&lt;BR /&gt;        &amp;lt;indexRules jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;            &amp;lt;cq:Page jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;properties jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                    &amp;lt;country&lt;BR /&gt;                        jcr:primaryType="nt:unstructured"&lt;BR /&gt;                        name="jcr:content/country"&lt;BR /&gt;                        notNullCheckEnabled="{Boolean}true"&lt;BR /&gt;                        propertyIndex="{Boolean}true"&lt;BR /&gt;                        type="String"/&amp;gt;&lt;BR /&gt;                    &amp;lt;id&lt;BR /&gt;                        jcr:primaryType="nt:unstructured"&lt;BR /&gt;                        name="jcr:content/id"&lt;BR /&gt;                        propertyIndex="{Boolean}true"&lt;BR /&gt;                        type="String"/&amp;gt;&lt;BR /&gt;                      &amp;lt;locale&lt;BR /&gt;                        jcr:primaryType="nt:unstructured"&lt;BR /&gt;                         name="jcr:content/locale"&lt;BR /&gt;                         propertyIndex="{Boolean}true"&lt;BR /&gt;                         type="String"/&amp;gt;    &lt;BR /&gt;                &amp;lt;/properties&amp;gt;&lt;BR /&gt;            &amp;lt;/cq:Page&amp;gt;&lt;BR /&gt;        &amp;lt;/indexRules&amp;gt;&lt;BR /&gt;    &amp;lt;/cqPageLucene-custom-1&amp;gt;&lt;BR /&gt;    &amp;lt;ntFolderDamLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;versionStoreIndex/&amp;gt;&lt;BR /&gt;    &amp;lt;repMembers/&amp;gt;&lt;BR /&gt;    &amp;lt;cqReportsLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;commerceLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;damAssetLucene-6/&amp;gt;&lt;BR /&gt;    &amp;lt;damCollectionLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;counter/&amp;gt;&lt;BR /&gt;    &amp;lt;authorizables/&amp;gt;&lt;BR /&gt;    &amp;lt;internalVerificationLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;enablementResourceName/&amp;gt;&lt;BR /&gt;    &amp;lt;lucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;externalPrincipalNames/&amp;gt;&lt;BR /&gt;    &amp;lt;damAssetStateIndex-2/&amp;gt;&lt;BR /&gt;    &amp;lt;cqProjectLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;experienceFragmentsIndex-2/&amp;gt;&lt;BR /&gt;    &amp;lt;acPrincipalName/&amp;gt;&lt;BR /&gt;    &amp;lt;cqPageLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;uuid/&amp;gt;&lt;BR /&gt;    &amp;lt;ntBaseLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;pathReference/&amp;gt;&lt;BR /&gt;    &amp;lt;rep:policy/&amp;gt;&lt;BR /&gt;    &amp;lt;workflowDataLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;cqPayloadPath/&amp;gt;&lt;BR /&gt;    &amp;lt;appsLibsLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;nodetypeLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;nodetype/&amp;gt;&lt;BR /&gt;    &amp;lt;reference/&amp;gt;&lt;BR /&gt;    &amp;lt;screensSmartSyncJcrPrimaryType/&amp;gt;&lt;BR /&gt;    &amp;lt;principalName/&amp;gt;&lt;BR /&gt;    &amp;lt;cqTagLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;repTokenIndex/&amp;gt;&lt;BR /&gt;    &amp;lt;externalId/&amp;gt;&lt;BR /&gt;    &amp;lt;authorizableId/&amp;gt;&lt;BR /&gt;    &amp;lt;packageLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;screensContentJcrPrimaryType/&amp;gt;&lt;BR /&gt;&amp;lt;/jcr:root&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Inside "project/ui.apps\src\main\content\META-INF\valut.xml", add below line&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;workspaceFilter version="1.0"&amp;gt;
&amp;lt;filter root="/oak:index/cqPageLucene-custom-1" /&amp;gt;
&amp;lt;/workspaceFilter&amp;gt;&lt;/PRE&gt;
&lt;P&gt;In ui.apps.structure pom.xml, Add below line&lt;/P&gt;
&lt;PRE&gt;&amp;lt;filter&amp;gt;&amp;lt;root&amp;gt;/oak:index&amp;lt;/root&amp;gt;&amp;lt;/filter&amp;gt;&lt;/PRE&gt;
&lt;P&gt;For more details Refer&amp;nbsp;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing.html?lang=en" target="_blank"&gt;https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing.html?lang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2022 10:15:39 GMT</pubDate>
    <dc:creator>HeenaMadan</dc:creator>
    <dc:date>2022-08-13T10:15:39Z</dc:date>
    <item>
      <title>Lucene Index for Querybuilder query</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540730#M134280</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to create a lucene Index for a query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The q&lt;SPAN&gt;uery returns the page (the page should be created with contentpage template)which matches the id(stored at component node ).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The query is given below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;type=cq:Page&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;path=content/mysite/country/locale&lt;/P&gt;
&lt;P&gt;property1=jcr:content/cq:template&lt;/P&gt;
&lt;P&gt;property1.value=conf/mysite/wcm/settings/contentpage-template&lt;/P&gt;
&lt;P&gt;property2=jcr:content/root/container/feature/Id&lt;/P&gt;
&lt;P&gt;property2.value=1234589&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: feature is my component and Id is the property stored at feature component node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a lucene Index for query. Here in my query, country, locale and id are dynamic values , which i am using a sling servlet to achieve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 18:26:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540730#M134280</guid>
      <dc:creator>gskittu</dc:creator>
      <dc:date>2022-08-12T18:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Index for Querybuilder query</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540771#M134283</link>
      <description>&lt;P&gt;You can use this Oak Index Definition Generator. It will help you generate index definition as per your query. As query is for type cq:Page, its index is already there and you need to just update your properties in it, path=/oak:index/cqPageLucene&lt;/P&gt;
&lt;P&gt;&lt;A href="https://oakutils.appspot.com/generate/index" target="_blank"&gt;https://oakutils.appspot.com/generate/index&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Once you add the properties in&amp;nbsp;cqPageLucene, you can validate your query here :&amp;nbsp;/libs/granite/operations/content/diagnosistools/queryPerformance.html. It will explain your query.&lt;/P&gt;
&lt;P&gt;Also you need to reindex&amp;nbsp;cqPageLucene by setting reindex=true.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sachinarora_0-1660360081206.png" style="width: 999px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/46459iACF47BB823D3A043/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="sachinarora_0-1660360081206.png" alt="sachinarora_0-1660360081206.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Corrected Query&lt;/STRONG&gt;&lt;BR /&gt;type=cq:Page&lt;BR /&gt;path=/content/mysite/country/locale&lt;BR /&gt;1_property=jcr:content/cq:template&lt;BR /&gt;1_property.value=/conf/mysite/settings/wcm/templates/page-template&lt;BR /&gt;2_property=jcr:content/root/container/feature/Id&lt;BR /&gt;2_property.value=1234589&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 03:11:14 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540771#M134283</guid>
      <dc:creator>sachinarora</dc:creator>
      <dc:date>2022-08-13T03:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Index for Querybuilder query</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540776#M134286</link>
      <description>&lt;P&gt;Create oak:index for properties which has dynamic values&amp;nbsp;&lt;SPAN&gt;country, locale and id.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;create&amp;nbsp;_oak_index folder inside "project/ui.apps\src\main\content\jcr_root"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;in content.xml, add below properties which you want to index&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:rep="internal"&lt;BR /&gt;    jcr:mixinTypes="[rep:AccessControllable]"&lt;BR /&gt;    jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;    &amp;lt;socialLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;cmLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;slingeventJob/&amp;gt;&lt;BR /&gt;    &amp;lt;jcrLanguage/&amp;gt;&lt;BR /&gt;    &amp;lt;cqPageLucene-custom-1&lt;BR /&gt;        jcr:primaryType="oak:QueryIndexDefinition"&lt;BR /&gt;        async="[async,nrt]"&lt;BR /&gt;        compatVersion="{Long}2"&lt;BR /&gt;        evaluatePathRestrictions="{Boolean}true"&lt;BR /&gt;        excludedPaths="[/var,/etc/replication,/etc/workflow/instances,/jcr:system]"&lt;BR /&gt;        reindex="{Boolean}false"&lt;BR /&gt;        reindexCount="{Long}2"&lt;BR /&gt;        seed="{Long}-900421530849754201"&lt;BR /&gt;        type="lucene"&amp;gt;&lt;BR /&gt;        &amp;lt;aggregates jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;            &amp;lt;cq:Page jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;include0&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="jcr:content"&lt;BR /&gt;                    relativeNode="{Boolean}true"/&amp;gt;&lt;BR /&gt;            &amp;lt;/cq:Page&amp;gt;&lt;BR /&gt;            &amp;lt;nt:file jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;include0&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="jcr:content"/&amp;gt;&lt;BR /&gt;            &amp;lt;/nt:file&amp;gt;&lt;BR /&gt;            &amp;lt;cq:PageContent jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;include0&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*"/&amp;gt;&lt;BR /&gt;                &amp;lt;include1&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*/*"/&amp;gt;&lt;BR /&gt;                &amp;lt;include2&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*/*/*"/&amp;gt;&lt;BR /&gt;                &amp;lt;include3&lt;BR /&gt;                    jcr:primaryType="nt:unstructured"&lt;BR /&gt;                    path="*/*/*/*"/&amp;gt;&lt;BR /&gt;            &amp;lt;/cq:PageContent&amp;gt;&lt;BR /&gt;        &amp;lt;/aggregates&amp;gt;&lt;BR /&gt;        &amp;lt;indexRules jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;            &amp;lt;cq:Page jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                &amp;lt;properties jcr:primaryType="nt:unstructured"&amp;gt;&lt;BR /&gt;                    &amp;lt;country&lt;BR /&gt;                        jcr:primaryType="nt:unstructured"&lt;BR /&gt;                        name="jcr:content/country"&lt;BR /&gt;                        notNullCheckEnabled="{Boolean}true"&lt;BR /&gt;                        propertyIndex="{Boolean}true"&lt;BR /&gt;                        type="String"/&amp;gt;&lt;BR /&gt;                    &amp;lt;id&lt;BR /&gt;                        jcr:primaryType="nt:unstructured"&lt;BR /&gt;                        name="jcr:content/id"&lt;BR /&gt;                        propertyIndex="{Boolean}true"&lt;BR /&gt;                        type="String"/&amp;gt;&lt;BR /&gt;                      &amp;lt;locale&lt;BR /&gt;                        jcr:primaryType="nt:unstructured"&lt;BR /&gt;                         name="jcr:content/locale"&lt;BR /&gt;                         propertyIndex="{Boolean}true"&lt;BR /&gt;                         type="String"/&amp;gt;    &lt;BR /&gt;                &amp;lt;/properties&amp;gt;&lt;BR /&gt;            &amp;lt;/cq:Page&amp;gt;&lt;BR /&gt;        &amp;lt;/indexRules&amp;gt;&lt;BR /&gt;    &amp;lt;/cqPageLucene-custom-1&amp;gt;&lt;BR /&gt;    &amp;lt;ntFolderDamLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;versionStoreIndex/&amp;gt;&lt;BR /&gt;    &amp;lt;repMembers/&amp;gt;&lt;BR /&gt;    &amp;lt;cqReportsLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;commerceLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;damAssetLucene-6/&amp;gt;&lt;BR /&gt;    &amp;lt;damCollectionLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;counter/&amp;gt;&lt;BR /&gt;    &amp;lt;authorizables/&amp;gt;&lt;BR /&gt;    &amp;lt;internalVerificationLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;enablementResourceName/&amp;gt;&lt;BR /&gt;    &amp;lt;lucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;externalPrincipalNames/&amp;gt;&lt;BR /&gt;    &amp;lt;damAssetStateIndex-2/&amp;gt;&lt;BR /&gt;    &amp;lt;cqProjectLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;experienceFragmentsIndex-2/&amp;gt;&lt;BR /&gt;    &amp;lt;acPrincipalName/&amp;gt;&lt;BR /&gt;    &amp;lt;cqPageLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;uuid/&amp;gt;&lt;BR /&gt;    &amp;lt;ntBaseLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;pathReference/&amp;gt;&lt;BR /&gt;    &amp;lt;rep:policy/&amp;gt;&lt;BR /&gt;    &amp;lt;workflowDataLucene-2/&amp;gt;&lt;BR /&gt;    &amp;lt;cqPayloadPath/&amp;gt;&lt;BR /&gt;    &amp;lt;appsLibsLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;nodetypeLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;nodetype/&amp;gt;&lt;BR /&gt;    &amp;lt;reference/&amp;gt;&lt;BR /&gt;    &amp;lt;screensSmartSyncJcrPrimaryType/&amp;gt;&lt;BR /&gt;    &amp;lt;principalName/&amp;gt;&lt;BR /&gt;    &amp;lt;cqTagLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;repTokenIndex/&amp;gt;&lt;BR /&gt;    &amp;lt;externalId/&amp;gt;&lt;BR /&gt;    &amp;lt;authorizableId/&amp;gt;&lt;BR /&gt;    &amp;lt;packageLucene/&amp;gt;&lt;BR /&gt;    &amp;lt;screensContentJcrPrimaryType/&amp;gt;&lt;BR /&gt;&amp;lt;/jcr:root&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Inside "project/ui.apps\src\main\content\META-INF\valut.xml", add below line&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;workspaceFilter version="1.0"&amp;gt;
&amp;lt;filter root="/oak:index/cqPageLucene-custom-1" /&amp;gt;
&amp;lt;/workspaceFilter&amp;gt;&lt;/PRE&gt;
&lt;P&gt;In ui.apps.structure pom.xml, Add below line&lt;/P&gt;
&lt;PRE&gt;&amp;lt;filter&amp;gt;&amp;lt;root&amp;gt;/oak:index&amp;lt;/root&amp;gt;&amp;lt;/filter&amp;gt;&lt;/PRE&gt;
&lt;P&gt;For more details Refer&amp;nbsp;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing.html?lang=en" target="_blank"&gt;https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing.html?lang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 10:15:39 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540776#M134286</guid>
      <dc:creator>HeenaMadan</dc:creator>
      <dc:date>2022-08-13T10:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Index for Querybuilder query</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540814#M134293</link>
      <description>&lt;P&gt;You need to follow this 4 steps&amp;nbsp; approach -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: Use AEM query builder debugger url&amp;nbsp;&lt;A href="http://localhost:4502/libs/cq/search/content/querydebug.html" target="_blank" rel="noopener"&gt;http://localhost:4502/libs/cq/search/content/querydebug.html&lt;/A&gt;&amp;nbsp;to generate xpath query as shown below -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEBAL_DAS_0-1660464110820.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/46468iF39970011D1BADDB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DEBAL_DAS_0-1660464110820.png" alt="DEBAL_DAS_0-1660464110820.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Query builder query -&lt;/P&gt;
&lt;PRE&gt;type=cq:Page

path=/content/mysite/country/locale

1_property=jcr:content/cq:template

1_property.value=/conf/mysite/wcm/settings/contentpage-template

2_property=jcr:content/root/container/feature/Id

2_property.value=1234589&lt;/PRE&gt;
&lt;P&gt;Xpath query -&lt;/P&gt;
&lt;PRE&gt;/jcr:root/content/mysite/country/locale//element(*, cq:Page)
[
(jcr:content/@cq:template = '/conf/mysite/wcm/settings/contentpage-template' and jcr:content/root/container/feature/@Id = '1234589')
]&lt;/PRE&gt;
&lt;P&gt;Step 2: Please copy the above mentioned Xpath query and paste into Oak Index Definition Generator [&lt;A href="https://oakutils.appspot.com/generate/index" target="_blank" rel="noopener"&gt;https://oakutils.appspot.com/generate/index&lt;/A&gt;] as shown below -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEBAL_DAS_1-1660464273028.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/46469iA284B15EF30907D1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DEBAL_DAS_1-1660464273028.png" alt="DEBAL_DAS_1-1660464273028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Index details has been given below -&lt;/P&gt;
&lt;PRE&gt;Index details -

  - compatVersion = 2
  - async = "async"
  - jcr:primaryType = oak:QueryIndexDefinition
  - evaluatePathRestrictions = true
  - type = "lucene"
  + indexRules 
   + cq:Page 
    + properties 
     + template 
      - name = "jcr:content/cq:template"
      - propertyIndex = true
     + Id 
      - name = "jcr:content/root/container/feature/Id"
      - propertyIndex = true
&lt;/PRE&gt;
&lt;P&gt;Step 3:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you need to add below node and property under&amp;nbsp;/oak:index/cqPageLucene/indexRules/cq:Page/properties&amp;nbsp; -&lt;/P&gt;
&lt;PRE&gt; template 
      - name = "jcr:content/cq:template"
      - propertyIndex = true
     + Id 
      - name = "jcr:content/root/container/feature/Id"
      - propertyIndex = true&lt;/PRE&gt;
&lt;P&gt;Step 4:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you need to initiate reindexing by making reindex [Boolean] true as shown below -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEBAL_DAS_1-1660469740547.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/46475i617726DF780A4DB0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DEBAL_DAS_1-1660469740547.png" alt="DEBAL_DAS_1-1660469740547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 09:39:35 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/lucene-index-for-querybuilder-query/m-p/540814#M134293</guid>
      <dc:creator>DEBAL_DAS</dc:creator>
      <dc:date>2022-08-14T09:39:35Z</dc:date>
    </item>
  </channel>
</rss>

