def get_export_documents(export_instance, filters): # Pull doc ids from elasticsearch and stream to disk query = _get_export_query(export_instance, filters) return iter_es_docs_from_query(query)
def get_all_rows(self): data = (flatten_result(r) for r in iter_es_docs_from_query(self._build_query( sort=False))) return self._get_rows(data)
def get_export_documents(export_instance, filters): # Pull doc ids from elasticsearch and stream to disk query = _get_export_query(export_instance, filters) return iter_es_docs_from_query(query)
def get_all_rows(self): data = (flatten_result(r) for r in iter_es_docs_from_query(self._build_query(sort=False))) return self._get_rows(data)
def get_export_documents(export_instance, filters, are_filters_es_formatted=False): # Pull doc ids from elasticsearch and stream to disk query = get_export_query(export_instance, filters, are_filters_es_formatted) return iter_es_docs_from_query(query)