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 "Vikas Saurabh (JIRA)" <ji...@apache.org> on 2017/10/01 03:47:02 UTC
[jira] [Created] (OAK-6750) Lucene facets don't work with relative
properties
Vikas Saurabh created OAK-6750:
----------------------------------
Summary: 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
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 [~teofili], [~tmueller]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)