manta_ray_media/search_api_elasticsearch_attachments

There is no license information available for the latest version (1.0.0) of this package.

Search API Elasticsearch Attachments

1.0.0 2020-08-24 16:14 UTC

This package is auto-updated.

Last update: 2024-05-25 00:40:59 UTC


README

forked from: https://git.drupalcode.org/project/search_api_elasticsearch_attachments

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 (8.x-6.0-alpha1 or higher)
  • Elasticsearch Version 6.2
  • Elasticsearch ingest-attachment plugin

Elasticsearch Plugin Installation

The first step is to install the Elasticsearch plugin: ingest-attachment, 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 ingest-attachment

Thats the hard work done.

Install this module with composer

composer require 'drupal/search_api_elasticsearch_attachments:6.x-dev'

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.

If you are using Elasticsearch Connector 8.x-6.0-alpha1 or higher, please use 8.x-6.x-dev of search_api_elasticsearch_attachments module.

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 Connector module (8.x-6.0-alpha1) compatibility.

8.x-6.0-alpha1 version of Elasticsearch Connector module requires a patch. These are applied automatically by composer.

Sit back and let composer do the hard work for you. Following Patches that will get auto applied by composer:

  • Issue #2918138: Support for alterParams()

Elasticsearch Attachments Configuration

Enable and Configure the Elasticsearch Attachments Processor

Enable_the_Processor