Added: support for new indexer features

Please see the whole explanation in https://github.com/cozy/cozy-data-indexer/pull/12
I was wondering when I wrote it, since both loops are kinda specific, I thought it was easier to read them like that. Totally possible though. What's your last word?