made search indexing optional