Write a lunr.js index file with Ruby.