factored out _index_by_(files|meta) as PAUSE did