jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergiy Shyrkov <my.public.mail...@gmail.com>
Subject Re: Jackrabbit 2.0 QueryResult.getNodes().getSize() returning -1
Date Thu, 18 Feb 2010 16:26:49 GMT
Yes, I see it now, thank you!
We have migrated form Jackrabbit 1.x to Jackrabbit 2.x and found this 
out. We use queries not to only perform fulltext searches, aka Google, 
where it is not mandatory to know the exact count of results. That is 
why I am searching now for a (good performing) way to get the exact 
number of query results, apart from iterating over all the nodes.
I will post a question in the 

thread to keep it in the same place.


On 18.02.2010 15:36, Alexander Klimetschek wrote:
> On Thu, Feb 18, 2010 at 15:33, Sergiy Shyrkov
> <my.public.mailing@gmail.com>  wrote:
>> Thank you, Guo!
>> I should have searched in dev list also.
> Note that it this is explicitly mentioned also right in the javadocs
> of getSize(), for both JCR 1.0 and 2.0:
> http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize()
> http://www.day.com/maven/jsr170/javadocs/jcr-2.0/javax/jcr/RangeIterator.html#getSize()
> Regards,
> Alex

View raw message