mapDir() is deprecated with the newest code.  Switch it to a QueryableIndex and loadIndex() instead.  Everything else should work.