Did you read the documentation about the plugin?

Otherwise you can also give a try at FSCrawler project which exposes also a REST interface. It's like a proxy to elasticsearch for indexing binary files.

---