Scala application to index documents and query for search terms