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

Lucene facets don't work with relative properties

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.9, 1.6.7, 1.4.19, 1.8.0
    • lucene
    • None

    Description

      Facets currently work only when faceted dimension is direct property of selected node e.g.

      select \[jcr:path], \[rep:facet(jc/text)] from \[nt:base] where ... 
      

      doesn't work but

      select \[jcr:path], \[rep:facet(text)] from \[nt:base] where ... 
      

      works (assume correct index defs).

      The issue is that ast/SelectorImpl#currentOakProperty check if rep:facet(jc/text) is a relative path or not and incorrectly 'feels' that it indeed is - it then proceeds ahead to traverse down a tree with elements [rep:facet(jc, text)] which makes no sense.

      /cc Tommaso Teofili, Terry Mueller

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            catholicon Vikas Saurabh
            catholicon Vikas Saurabh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment