global index and docs grouped by kind