search index optimizations for query speed