Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1501

Property index on "jcr:primaryType" returns the wrong cost

    XMLWordPrintableJSON

Details

    Description

      For queries of type, the property index on jcr:primaryType is used, even if only a subset of all node types are indexed:

      /jcr:root//element(*,rep:User)[xyz/@jcr:primaryType]
      

      The problem is that this index returns the wrong cost. It should return "infinity", because the index doesn't have enough data if not all node types and mixins are indexed.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: