code: def search(self, word, limit=30):
          
          search = Search(PrefixQuery("word", word), sort={"count": "desc"})
          for doc in self.connection.search(
                  search, indexes=[self.index], count=limit):
              yield (doc["word"], doc["count"])
docs: Search for a word within the wordgatherer collection.
          :param word: Word to search for.
          :param limit: Maximum number of results to return.