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 "Santiago García Pimentel (Jira)" <ji...@apache.org> on 2021/05/26 18:21:00 UTC
[jira] [Commented] (OAK-6676) rep:facet doesn't work in combination
with aliases in JCR-SQL2
[ https://issues.apache.org/jira/browse/OAK-6676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17352007#comment-17352007 ]
Santiago García Pimentel commented on OAK-6676:
-----------------------------------------------
seems like even if changing that class that [~diru] mentions, Oak will still not pick the right index and then refuse to execute the query since it does not use traversals with facets.
> rep:facet doesn't work in combination with aliases in JCR-SQL2
> --------------------------------------------------------------
>
> Key: OAK-6676
> URL: https://issues.apache.org/jira/browse/OAK-6676
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Affects Versions: 1.6.1
> Reporter: Dirk Rudolph
> Priority: Minor
>
> Within [SelectorImpl#createFilter()|http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/SelectorImpl.java?view=markup#l389] the columnName is used to determine wether to add a indicating restriction for facets or not.
> So using query like
> {code}
> select [rep:facet(tags)] as facets from ...
> {code}
> Will not contain facets.
> Same applies for {{rep:excerpt}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)