How to index and store pdf file in elastic search using spring boot?

It does not work with GET.