code: def search(self, query):
          
          return [self.get_document(key) for key, _ in self._search(query)]
docs: :param str query: Search query. May contain boolean/set operations
              and parentheses.
          :returns: a list of document hashes corresponding to matching
              documents.
  
          Search the index. The return value is a list of dictionaries
          corresponding to the documents that matched. These dictionaries contain
          a ``content`` key with the original indexed content, along with any
          additional metadata that was specified.