index creation and fetching