search-engine: explained generating indices