Formatting indexes, fetching first 50 documents