It looks like the class org.hibernate.search.backend.elasticsearch.work.impl.BulkWork assumes the bulk work always succeeds, leading to the creation of an empty list of result items when it fails. Consequently, if a bulk work fails, result extraction will try to access a result item that doesn't exist and trigger an IndexOutOfBoundsException. |