maintenance script indexing entities