[ https://issues.apache.org/jira/browse/SLING-7303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16286042#comment-16286042 ]
Dirk Rudolph edited comment on SLING-7303 at 12/11/17 3:31 PM: --------------------------------------------------------------- The issue with facets might (in my case) be related to OAK-6750. was (Author: diru): The issue with facets might be related to OAK-6750. > BasicQueryLanguageProvider#queryResources does not return all selected fields > ----------------------------------------------------------------------------- > > Key: SLING-7303 > URL: https://issues.apache.org/jira/browse/SLING-7303 > Project: Sling > Issue Type: Bug > Components: JCR > Affects Versions: JCR Resource 2.9.2, JCR Resource 3.0.8 > Reporter: Dirk Rudolph > > The method named above iterates over the values returned from the row using > {{jcrRow.getValues()}} - this unfortunately doesn't take all capabilities of > oak into account. To name just a few: > 1) Selectors: Querying with selector like {{select p.\[jcr:score] from > \[cq:Page] as p where contains(p.\[*], 'some text')}} returns 0.01 as score > because the actual score is stored in {{p.jcr:score}} and the fallback is [an > open > todo|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java#L82]. > 2) Advanced query functionalities: Queries containing for example rep:facet() > don't take those into account at all, as the colNames are not iterated, only > the values which only expose stored fields. See the following for all the > cases: > [LucenePropertyIndex.java#L1628|https://github.com/apache/jackrabbit-oak/blob/jackrabbit-oak-1.6.1/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java#L1628] > Along with this bug the unit tests for a couple of scenarios should be added > to cover what BasicQueryLanguageProvider is doing. -- This message was sent by Atlassian JIRA (v6.4.14#64029)