The mapper attachments plugin adds the attachment type to Elasticsearch using Apache Tika.
'org.elasticsearch.plugin:mapper-attachments:2.2.0'
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>mapper-attachments</artifactId>
<version>2.2.0</version>
</dependency>
<dependency org="org.elasticsearch.plugin" name="mapper-attachments" rev="2.2.0"/>
"org.elasticsearch.plugin", "mapper-attachments", "2.2.0"