You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Amit Jain (JIRA)" <ji...@apache.org> on 2015/01/21 06:46:35 UTC

[jira] [Created] (OAK-2426) [LucenePropertyIndex] full-text search on first level relative node returns no result

Amit Jain created OAK-2426:
------------------------------

             Summary: [LucenePropertyIndex] full-text search on first level relative node returns no result
                 Key: OAK-2426
                 URL: https://issues.apache.org/jira/browse/OAK-2426
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: oak-lucene
    Affects Versions: 1.1.4, 1.0.9
            Reporter: Amit Jain


Following query does not return any result even with a proper index defined [1].
{noformat}//element(*, test:Page)[ " +
            "jcr:contains(jcr:content, 'summer') ]
{noformat}

[1]
{code}
{
  "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"
        }
      }
    }
  }
}
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)