This module is seeking new maintainers. Consider using Search API Attachments, which is also able to index files for Elasticsearch (as well as other search backends).

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”.

Search API Elasticsearch Attachments

Requirements

This module requires:

  • Drupal 8
  • Search API Module
  • Elasticsearch Connector module
  • Elasticsearch Version 5.6 or 6x
  • Elasticsearch mapper-attachments or ingest-attachment plugin

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

Enable the Processor
Enable the Processor
Enable the Processor

Supporting organizations: 

Project information

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

Releases