manta_ray_media/search_api_elasticsearch_attachments

此包的最新版本(1.0.0)没有提供许可证信息。

搜索API Elasticsearch附件

1.0.0 2020-08-24 16:14 UTC

This package is auto-updated.

Last update: 2024-09-25 01:28:08 UTC


README

从: https://git.drupalcode.org/project/search_api_elasticsearch_attachments

Elasticsearch通常用于索引字符串、数字、日期等类型的数据。

但是,如果你想要直接索引一个如.pdf或.doc的文件并使其可搜索呢?

此模块允许Drupal通过利用Elasticsearch数据类型"attachment"来索引文件(附件)到Elasticsearch。

Search_API_Elasticsearch_Attachments

需求

此模块需要

  • Drupal 8
  • 搜索API模块
  • Elasticsearch连接器模块(8.x-6.0-alpha1或更高版本)
  • Elasticsearch版本6.2
  • Elasticsearch ingest-attachment插件

Elasticsearch插件安装

第一步是安装Elasticsearch插件:ingest-attachment,它使ES能够识别"attachment"数据类型。反过来,它使用Apache Tika进行内容提取,并支持多种文件类型,如.pdf、.doc、.xls、.rtf、.html、.odt等。

$ES_HOME> bin/elasticsearch-plugin install ingest-attachment

这项艰苦的工作已经完成。

使用composer安装此模块

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

版本信息(重要)

您必须根据您的Elastic Search服务器配置选择正确的模块版本。请参阅下表以获取兼容性信息。

如果您正在使用Elasticsearch连接器8.x-6.0-alpha1或更高版本,请使用search_api_elasticsearch_attachments模块的8.x-6.x-dev版本。

Elasticsearch连接器模块(8.x-6.0-alpha1)兼容性。

Elasticsearch连接器模块8.x-6.0-alpha1版本需要补丁。这些补丁将由composer自动应用。

坐下来,让composer为您完成艰苦的工作。以下将由composer自动应用的补丁:

  • 问题#2918138:支持alterParams()

Elasticsearch附件配置

启用并配置Elasticsearch附件处理器

Enable_the_Processor