generate-local-index: make it simple