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