#
# List of index definitions to create in the Apache Jackrabbit Oak JCR
#
# Each property in this file represents an index definition with:
# - the property name: the index identifier
# - the property value: a space-separated list of JCR node properties to index
#

# Based on result of https://oakutils.appspot.com/generate/index when analyzing all
# Silverpeas's requests for lucene indexes:
#- compatVersion = 2
#  - async = "async"
#  - jcr:primaryType = oak:QueryIndexDefinition
#  - evaluatePathRestrictions = true
#  - type = "lucene"
#  + indexRules
#   + slv:simpleDocument
#    + properties
#     + expiryDate
#      - name = "slv:expiryDate"
#      - propertyIndex = true
#     + owner
#      - name = "slv:owner"
#      - propertyIndex = true
#     + primaryType
#      - name = "jcr:primaryType"
#      - propertyIndex = true
#     + versioned
#      - name = "slv:versioned"
#      - propertyIndex = true
#     + alertDate
#      - name = "slv:alertDate"
#      - propertyIndex = true
#     + foreignKey
#      - name = "slv:foreignKey"
#      - propertyIndex = true
#     + oldSilverpeasId
#      - name = "slv:oldSilverpeasId"
#      - propertyIndex = true
#     + order
#      - name = "slv:order"
#      - ordered = true

indexByPrimaryType = jcr:primaryType
indexByOldSilverpeasId = slv:oldSilverpeasId
indexByForeignKey = slv:foreignKey
indexByOwner = slv:owner
indexByVersioned = slv:versioned
indexByExpiryDate = slv:expiryDate
indexByAlertDate = slv:alertDate
indexByOrder = slv:order