code: def all_documents(index=INDEX_NAME):
      
      query = {
          'query': {
              'match_all': {}
          }
      }
      for result in raw_query(query, index=index):
          yield result
docs: Get all documents from the given index.
  
      Returns full Elasticsearch objects so you can get metadata too.