Hi Team,

We are completing block on the below OAK indexing issue.
Kindly suggest us an approach to proceed on indexing.

Subhashish Chatterjee
Deloitte Consulting India Private Limited
Tel/Direct: +1 998 952 8903
www.deloitte.com

From: Kesavarajugari, Vivek Kowndinya (US - Bengaluru)
Sent: Sunday, October 4, 2015 7:59 PM
To: [email protected]
Cc: Patel, Ishan (US - Dallas) <[email protected]>; Arora, Akshay (US - 
Hyderabad) <[email protected]>; Chatterjee, Subhashish (US - Hyderabad) 
<[email protected]>
Subject: Need suggestions for oak indexing and structuring query

Hi All,

We are trying to create oak indexing for different node types and boost the 
values while searching through fulltext query, but it’s not able to pick it up.
Could you please suggest the best approach of structuring the query indexing 
with multiple node types and property definition.

Attached are the index definition and search query for fulltext 
(cq:pages/dam:assets).

Thanks
Vivek Kowndinya





This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law. If you 
are not the intended recipient, you should delete this message and any 
disclosure, copying, or distribution of this message, or the taking of any 
action based on it, by you is strictly prohibited.

v.E.1







<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0"; 
xmlns:dam="http://www.day.com/dam/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"
    jcr:primaryType="oak:QueryIndexDefinition"
    async="async"
    compatVersion="{Long}2"
    evaluatePathRestrictions="{Boolean}true"
    includedPaths="[/content/dam/company-name,/content/company-name]"
    reindex="{Boolean}false"
    type="lucene">
    <aggregates jcr:primaryType="nt:unstructured">
        <dam:Asset jcr:primaryType="nt:unstructured">
            <include0
                jcr:primaryType="nt:unstructured"
                path="jcr:content"/>
            <include1
                jcr:primaryType="nt:unstructured"
                path="jcr:content/metadata"/>
            <include2
                jcr:primaryType="nt:unstructured"
                path="jcr:content/metadata/*"/>
            <include3
                jcr:primaryType="nt:unstructured"
                path="jcr:content/renditions"/>
            <include4
                jcr:primaryType="nt:unstructured"
                path="jcr:content/renditions/original"/>
            <include5
                jcr:primaryType="nt:unstructured"
                path="jcr:content/renditions/original/jcr:content"/>
            <include6
                jcr:primaryType="nt:unstructured"
                path="jcr:content/comments"/>
            <include7
                jcr:primaryType="nt:unstructured"
                path="jcr:content/comments/*"/>
        </dam:Asset>
                <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">
        <nt:base jcr:primaryType="nt:unstructured">
            <properties jcr:primaryType="nt:unstructured">
                <cqTags
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/cq:tags"
                    propertyIndex="{Boolean}true"/>
                <dcFormat
                    jcr:primaryType="nt:unstructured"
                    analyzed="{Boolean}true"
                    name="jcr:content/metadata/dc:format"
                    propertyIndex="{Boolean}true"/>
                <damStatus
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/dam:status"
                    propertyIndex="{Boolean}true"/>
                <videoCodec
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/videoCodec"
                    propertyIndex="{Boolean}true"/>
                <audioCodec
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/audioCodec"
                    propertyIndex="{Boolean}true"/>
                <dcTitle
                    jcr:primaryType="nt:unstructured"
                    boost="{Double}2.0"
                    name="jcr:content/metadata/dc:title"
                    nodeScopeIndex="{Boolean}true"
                    propertyIndex="{Boolean}true"/>
                <dcDescription
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/dc:description"
                    propertyIndex="{Boolean}true"/>
                <xmpMMInstanceId
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/xmpMM:InstanceID"
                    propertyIndex="{Boolean}true"/>
                <xmpMMDocumentId
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/xmpMM:DocumentID"
                    propertyIndex="{Boolean}true"/>
                <damSha1
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/dam:sha1"
                    propertyIndex="{Boolean}true"/>
                <hasValidMetadata
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/hasValidMetadata"
                    propertyIndex="{Boolean}true"
                    type="Boolean"/>
                <videoBitrate
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/videoBitrate"
                    propertyIndex="{Boolean}true"/>
                <audioBitRate
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/audioBitrate"
                    propertyIndex="{Boolean}true"/>
                <jcrLastModified
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/jcr:lastModified"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Date"/>
                <expirationDate
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/prism:expirationDate"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Date"/>
                <onTime
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/onTime"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Date"/>
                <offTime
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/offTime"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Date"/>
                <damSize
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/dam:size"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Long"/>
                <averageRating
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/averageRating"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Double"/>
                <tiffImageWidth
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/tiff:ImageWidth"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Long"/>
                <tiffImageLength
                    jcr:primaryType="nt:unstructured"
                    name="jcr:content/metadata/tiff:ImageLength"
                    ordered="{Boolean}true"
                    propertyIndex="{Boolean}true"
                    type="Long"/>

                    <cqLastModified
                        jcr:primaryType="nt:unstructured"
                        name="jcr:content/cq:lastModified"
                        ordered="{Boolean}true"
                        propertyIndex="{Boolean}true"
                        type="Date"/>
                    <jcrTitle
                        jcr:primaryType="nt:unstructured"
                        name="jcr:content/jcr:title"
                        ordered="{Boolean}false"
                        propertyIndex="{Boolean}true"
                        type="String"/>
                        <productId
                                                
jcr:primaryType="nt:unstructured"
                                                name="jcr:content/productId"
                        ordered="{Boolean}false"
                                                propertyIndex="{Boolean}true"
                                                type="String"/>
                </properties>
            </cq:Page>
    </indexRules>
</jcr:root>


   
group.p.or=false

group.1_group.fulltext=the

group.2_group.p.or=true

group.2_group.1_group.p.or=false
group.2_group.1_group.type=cq:Page
group.2_group.1_group.1_path=/content/company-name/en-us/products
group.2_group.1_group.1_property=jcr:content/sling:resourceType
group.2_group.1_group.1_property.value=company-name/components/page/product-details-page


group.2_group.2_group.p.or=false
group.2_group.2_group.type=cq:Page
group.2_group.2_group.1_path=/content/company-name/en-us
group.2_group.2_group.2_property=jcr:content/sling:resourceType
group.2_group.2_group.2_property.operation=unequals
group.2_group.2_group.2_property.value=company-name/components/page/product-details-page

group.2_group.3_group.p.or=false
group.2_group.3_group.type=dam:Asset
group.2_group.3_group.2_path=/content/dam/company-name/documents

p.limit=-1
p.offset=0
orderby=@jcr:score
orderby.sort=desc

Reply via email to