Formatting results of index search