Skip to content

Oak Index for Audit Log Search is outdated #201

Open
@shsteimer

Description

@shsteimer

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions