Hi all,
looking at some other problems in log using DEBUG level I found the
following lines:

DEBUG (async-index-update-async) [/oak:index/fileNodes] Ordered property
defined with type STRING differs from property jcr:created =
2024-06-18T11:37:44.076-05:00 with type DATE in path /r10M6/pdfOCR4

DEBUG (async-index-update-async) [/oak:index/fileNodes] Ordered property
defined with type STRING differs from property jcr:lastModified =
2024-06-18T11:37:44.087-05:00 with type DATE in path /r10M6/pdfOCR4

DEBUG (async-index-update-async) [/oak:index/fileNodes] Ordered property
defined with type STRING differs from property jcr:primaryType = File with
type NAME in path /r10M6/pdfOCR4

my index looks like this:
{
    "compatVersion": 2,
    "async": "async",
    "jcr:primaryType": "oak:QueryIndexDefinition",
    "evaluatePathRestrictions": true,
    "type": "lucene",
    "indexRules": {
        "jcr:primaryType": "nt:unstructured",
        "nt:file": {
            "jcr:primaryType": "nt:unstructured",
            "properties": {
                "jcr:primaryType": "nt:unstructured",
                "created": {
                    "name": "jcr:created",
                    "propertyIndex": true,
                    "ordered": true,
                    "jcr:primaryType": "nt:unstructured"
                },
                "lastModified": {
                    "name": "jcr:lastModified",
                    "propertyIndex": true,
                    "ordered": true,
                    "jcr:primaryType": "nt:unstructured"
                },
                "name": {
                    "name": ":name",
                    "propertyIndex": true,
                    "ordered": true,
                    "jcr:primaryType": "nt:unstructured",
                    "type": "String"
                }
            }
        }
    }
}

Would it be better if I define the type for each property, instead of being
"inferred
<https://jackrabbit.apache.org/oak/docs/query/lucene.html#property-definitions>"?
in my index should be DATE, DATE and STRING (or NAME) respectively?

Thanks.

Jorge

Reply via email to