Elasticsearch is generally used to index data of types like string, number, date, etc. However, what if you wanted to index a file like a .pdf or a .doc directly and make it searchable?
This module allows Drupal to index files (attachments) to Elasticsearch by making use of Elasticsearch data type “attachment”.

Requirements
This module requires:
- Drupal 8
- Search API Module
- Elasticsearch Connector module
- Elasticsearch Version 5.6 or 6x
- Elasticsearch
mapper-attachmentsoringest-attachmentplugin
Version Information (Important)
You have to choose the correct versions of the module depending on your Elastic Search Server setup. Please see the table below for compatibility.
| Search API Elasticsearch Attachments | Elasticsearch Connector | Elasticsearch Version | Attachment Plugin Support |
|---|---|---|---|
| 8.x-1.x | 8.x-5.x | 5x | Mapper Attachments Plugin |
| 8.x-5.x | 8.x-5.x | 5x | Ingest Attachment Processor Plugin |
| 8.x-6.x | 8.x-6.x | 6x | Ingest Attachment Processor Plugin |
Elasticsearch Plugin Installation
The first step is to install the Elasticsearch plugin: mapper-attachments, which enables ES to recognise the “attachment” data type. In turn, it uses Apache Tika for content extraction and supports several file types such as .pdf, .doc, .xls, .rtf, .html, .odt, etc.
$ES_HOME:> bin/elasticsearch-plugin install mapper-attachments
Thats the hard work done.
Install this module with composer
composer require drupal/search_api_elasticsearch_attachments
Elasticsearch Attachments Configuration
Enable and Configure the Elasticsearch Attachments Processor



Project information
Seeking new maintainer
The current maintainers are looking for new people to take ownership.No further development
No longer developed by its maintainers.- Project categories: Site search
9 sites report using this module
- Created by dakku on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
