adobe-consulting-services.github.io icon indicating copy to clipboard operation
adobe-consulting-services.github.io copied to clipboard

Oak Index for Audit Log Search is outdated

Open shsteimer opened this issue 3 years ago • 0 comments

The index package provided does not use a compatVersion=2 Lucene index, which in my experience causes it to not always work properly. I'd suggest we update this to use an index definition more along the lines of

 <cqAuditEvent
        jcr:primaryType="oak:QueryIndexDefinition"
       async="async"
       compatVersion="{Long}2"
       type="lucene">
    <indexRules jcr:primaryType="nt:unstructured">
        <cq:AuditEvent jcr:primaryType="nt:unstructured">
            <properties jcr:primaryType="nt:unstructured">
                <path
                    jcr:primaryType="nt:unstructured"
                    name="cq:path"
                    propertyIndex="{Boolean}true"/>
                <time
                    jcr:primaryType="nt:unstructured"
                    name="cq:time"
                    propertyIndex="{Boolean}true"/>
                <type
                    jcr:primaryType="nt:unstructured"
                    name="cq:type"
                    propertyIndex="{Boolean}true"/>
                <user
                    jcr:primaryType="nt:unstructured"
                    name="cq:userid"
                    propertyIndex="{Boolean}true"/>
            </properties>
        </cq:AuditEvent>
    </indexRules>
    </cqAuditEvent>

shsteimer avatar Nov 03 '20 16:11 shsteimer