Implement support for the new directory search API