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