Minor improvements to the TextSearch component.