ES doesn't guarantee that refresh will wait for cluster state propagation and thus the type might not exist right after the index being created during the bulk load. Just check the documents instead.
ES doesn't guarantee that refresh will wait for cluster state propagation and thus the type might not exist right after the index being created during the bulk load. Just check the documents instead.