Improved text retrieval protocol