You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Lukas Kahwe Smith <ml...@pooteeweet.org> on 2012/01/19 18:28:52 UTC

getting total number of results from a query

Hi,

I havent found a way to get the total number of results (via davex). Afaik via Lucene it should be trivial to provide this number (even when using limit/offset), but from what I see there is only a getSize() on the iterator which is limited to the rows that were requested. However in a web app its often quite useful to be able to know the full count of the result set (though the number doesnt necessarily need to be 100% accurate).

regards,
Lukas Kahwe Smith
mls@pooteeweet.org