Add global index directive