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

[LucenePropertyIndex] full-text search on first level relative node returns no result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9, 1.1.4
    • 1.0.10, 1.1.6
    • lucene
    • None

    Description

      Following query does not return any result even with a proper index defined [1].

      //element(*, test:Page)[ " +
                  "jcr:contains(jcr:content, 'summer') ]
      

      [1]

      {
        "jcr:primaryType": "oak:QueryIndexDefinition",
        "compatVersion": 2,
        "name": "pageIndex",
        "type": "lucene",
        "async": "async",
        "reindex": true,
        "aggregates": {
          "jcr:primaryType": "nt:unstructured",
          "test:Page": {
            "jcr:primaryType": "nt:unstructured",
            "include0": {
              "jcr:primaryType": "nt:unstructured",
              "relativeNode": true,
              "path": "jcr:content"
            }
          }
        },
        "indexRules": {
          "jcr:primaryType": "nt:unstructured",
          "test:Page": {
            "jcr:primaryType": "nt:unstructured",
            "properties": {
              "jcr:primaryType": "nt:unstructured",
              "jcr:lastModified": {
                "jcr:primaryType": "nt:unstructured",
                "ordered": true,
                "propertyIndex": true,
                "name": "jcr:content/jcr:lastModified",
                "type": "Date"
              }
            }
          }
        }
      }
      

      Attachments

        1. OAK-2426.patch
          2 kB
          Amit Jain

        Activity

          People

            chetanm Chetan Mehrotra
            amitjain Amit Jain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: