add getAllDocuments for compressed indexer