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