jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikas Saurabh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-6750) Lucene facets don't work with relative properties
Date Wed, 29 Nov 2017 10:44:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-6750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16270570#comment-16270570
] 

Vikas Saurabh commented on OAK-6750:
------------------------------------

Oops. Sorry. I thought I had checked Travis on my local fork before pushing. BTW, I think
it would have been backport of OAK-6792 (backported in same revision) which would have broken
it. I would take a look (likely tomorrow though)

> Lucene facets don't work with relative properties
> -------------------------------------------------
>
>                 Key: OAK-6750
>                 URL: https://issues.apache.org/jira/browse/OAK-6750
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>             Fix For: 1.8, 1.7.9, 1.4.19, 1.6.7
>
>         Attachments: OAK-6750-testCase.patch
>
>
> Facets currently work only when faceted dimension is direct property of selected node
e.g. 
> {noformat}
> select \[jcr:path], \[rep:facet(jc/text)] from \[nt:base] where ... 
> {noformat}
> doesn't work but 
> {noformat}
> select \[jcr:path], \[rep:facet(text)] from \[nt:base] where ... 
> {noformat}
> 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 [~teofili], [~tmueller]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message