fixed teh search indexing script