A simple directory based on rails and elasticsearch