This content has been marked as final.
Show 3 replies
-
1. Re: Query count to know total number of elements when paginating search results
hchiorean Nov 7, 2014 6:21 AM (in response to folch)1 of 1 people found this helpfulATM this is not possible without iterating. We do have an open issue for this [MODE-1904] Add support for SQL Count function - JBoss Issue Tracker
There are some challenges in implementing this, especially in a repository which has ACLs enabled.
-
2. Re: Query count to know total number of elements when paginating search results
folch Nov 7, 2014 9:28 AM (in response to hchiorean)We are not using ACLs, so all the content is visible for everybody.
Can we access somehow to the underlaying Lucene objects to query for the total number of items? Do you think it's a possible?
Guillem
-
3. Re: Query count to know total number of elements when paginating search results
hchiorean Nov 7, 2014 9:54 AM (in response to folch)Unfortunately there is no way to access this information, as the Lucene implementation is not exposed in any way.