Hello, I group search result by a field (with high cardinality) I paginate search page using num of groups using param group.ngroups=true. But that cause high CPU issue. So i turn off it.
Without ngroups=true, i can't get the num of groups so pagination is not correct because i must use numFound, it alway miss some last pages, the reason is some results was already collapsed into groups in previous pages. For example, a search return 11 results, but there are 2 results belong to 1 groups, so it has 10 groups (but i don't know it in advance because i set ngroups=false), with 11 results, pagination display 2 pages, but page 2 have 0 results. Anyone faced similar issue and had a work around? Thanks, Tien