various improvements in text search