adding loadIndex for DocOnly