Details
-
Task
-
Status: Closed
-
Top
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
You must add a order by clause to the query when you want getSize() of the QueryResult. From jackrabbit 2.0 and higher (CMS trunk now) you'll get -1 for getSize() if you do not have ordering. Yes...it is an insane feature imo of jackrabbit, can't help it. If you don't know where to sort on, just add: 'order by @jcr:score descending'.
Attachments
Issue Links
- relates to
-
HIPPLUG-111 Plugins use Query with ordering without setting limit
- Closed
-
HIPPLUG-111 Plugins use Query with ordering without setting limit
- Closed