jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacco van Weert <1111softw...@gmail.com>
Subject Re: NodeIterator.getSize() returns -1 for query with order by clause
Date Wed, 14 Apr 2010 09:12:54 GMT
See this thread for some answers

http://n4.nabble.com/Queries-not-working-in-Jackrabbit-2-0-td1558394.html


On Wed, Apr 14, 2010 at 10:58 AM, Gadbury <gadbury@googlemail.com> wrote:

>
> To make things a little more simple, I have been experimenting with smaller
> queries that do not use joins.
>
>                select * from [my:order] as orders
>                where orders.[orderStatus] = 2
>                order by orders.[jcr:created] asc
>
> The above query returns the correct amount of nodes BUT
> nodeIterator.getSize() returns -1.
>
>                select * from [my:order] as orders
>                order by orders.[jcr:created] asc
>
>
> The above query returns the correct amount of nodes AND
> nodeIterator.getSize() returns the correct value.
>
> Why when I supply the property constraint is nodeIterator.getSize()
> returning -1?
> --
> View this message in context:
> http://n4.nabble.com/NodeIterator-getSize-returns-1-for-query-with-order-by-clause-tp1839436p1839484.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>



-- 
-------------------------------------
Jacco van Weert -- 1111software@gmail.com
JCR Controller -- http://www.xs4all.nl/~weertj/jcr
JeCARS -- http://code.google.com/p/jecars/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message