Performance optimization for fulltext search