When there are no buffered documents continue rebuilding index.