Add task indexing module and spec for it