We are using SDL Web 8.5.

While publishing any item we are also pushing some content of the item in elastic search using si4t storage extension sometime there is an error between deployer and elastic search service we would like to abort publishing and shown to the user as failed in publishing queue if there is any error while pushing content to elastic search.

how we can handle this in our si4t extension jar file?


1 Answer 1


Yes. As @Rai mentioned it's already handled in the SI4T refer to that link which rai mentioned in his comment.

In your custom elastic search deployer storage extention code, you can add one more exception catch for elastic search.


catch (ElasticsearchException e)
            throw new IndexingException("Elastic Search Client Exception:" + e.getMessage());

Also, see this code - https://github.com/avmgan/SI4T-elasticsearch/blob/master/src/main/java/org/si4t/elastic/ElasticSearchIndexer.java#L140

I hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.