added solution for textquery