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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/01/22 15:01:35 UTC

[jira] [Resolved] (OAK-2436) LucenePropertyIndex throws IllegalStateException: No query created for filter when using order by jcr:score

     [ https://issues.apache.org/jira/browse/OAK-2436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra resolved OAK-2436.
----------------------------------
    Resolution: Duplicate

Current issue is more of a side affect of OAK-2439. LucenePropertyIndex should not get involved in such queries. So resolving this one as duplicate

> LucenePropertyIndex throws IllegalStateException: No query created for filter when using order by jcr:score
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-2436
>                 URL: https://issues.apache.org/jira/browse/OAK-2436
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.1.4
>            Reporter: Thomas Mueller
>             Fix For: 1.1.6
>
>
> If a Lucene property index is configured, the query {{select [jcr:path] from [nt:base] order by [jcr:score]}} throws the following exception:
> {noformat}
> java.lang.IllegalStateException: No query created for filter Filter(query=select [jcr:path] from [nt:base] order by [jcr:score], path=*)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.getQuery(LucenePropertyIndex.java:505)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.access$200(LucenePropertyIndex.java:158)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex$1.loadDocs(LucenePropertyIndex.java:303)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex$1.computeNext(LucenePropertyIndex.java:261)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex$1.computeNext(LucenePropertyIndex.java:253)
> 	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
> 	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex$LucenePathCursor$1.hasNext(LucenePropertyIndex.java:1128)
> 	at com.google.common.collect.Iterators$7.computeNext(Iterators.java:645)
> 	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
> 	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
> 	at org.apache.jackrabbit.oak.spi.query.Cursors$PathCursor.hasNext(Cursors.java:198)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex$LucenePathCursor.hasNext(LucenePropertyIndex.java:1149)
> 	at org.apache.jackrabbit.oak.query.ast.SelectorImpl.next(SelectorImpl.java:401)
> {noformat}
> The same exception is thrown for "explain select".
> If "order by jcr:score" is removed or changed, the query works.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)