Multi-indexes solution

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>