Indices API: Fix wrong search stats groups

This provides a fix to issue #7644.