Change return type of text search