code to index the title of the publication and save indexes in a derectory from where they can be later retrieved.