simple index with text corpus