0

我有一个 HDFS 存档来存储各种文档,例如pdf、ms word 文件、ppt、csv等。我想构建一个使用 elasticsearch 来搜索文件或文本内容的平台。我知道我可以使用es-hadoop插件将数据从 HDFS 索引到 ES。我想知道从存储在 HDFS 中的文档中提取文本数据并对其进行索引的最佳方法。

任何帮助,将不胜感激。

4

2 回答 2

3

我做了很多搜索,这是我到目前为止找到的方法列表。

这是整体集成/插件页面: https ://www.elastic.co/guide/en/elasticsearch/plugins/master/integrations.html

这是映射器附件的新替代品,Injest 插件: https ://www.elastic.co/guide/en/elasticsearch/plugins/current/ingest-attachment.html 关于如何使用它的帖子: https://qbox。 io/blog/index-attachments-files-elasticsearch-mapper 下面讨论了使用 Injest 与 fs-crawler 的优缺点(dadoonet 是 Elastic 开发人员): https ://discuss.elastic.co/t/mapper-attachment -plugin-vs-pre-parsing-and-extracting-content-from-binary-files/73764/10

这里是文件系统爬虫(FS爬虫)插件: https ://github.com/dadoonet/fscrawler

这是 Ambar 文档搜索系统 - 他们有一个开源代码社区 github: https ://ambar.cloud/ https://github.com/RD17/ambar https://blog.ambar.cloud/ingesting-documents- pdf-word-txt-etc-into-elasticsearch/ 他们似乎使用两种数据库服务器类型(MongoDB 和 Redis),尚不知道为什么。

这是 Injest 和 Ambar 都使用的 Apache Tika(它还通过使用 Tesseract 提供 OCR,我听说 Injest 不支持): http ://tika.apache.org/1.16/

此外,在 Injest 对 Tika 的使用中,仅支持一部分文件类型: https ://discuss.elastic.co/t/full-list-of-supported-document-formats-by-es/81149

我希望以上内容可以节省其他开发人员的时间,如果人们发现更多,他们将在下面发表评论。

谢谢!

于 2017-12-08T15:21:59.333 回答
2

您可以使用Elasticsearch 映射器附件插件。该插件使用Apache Tika来摄取几乎所有知名类型的文档,并使其可被 Elasticsearch 搜索。希望有帮助。

于 2016-04-05T20:36:10.750 回答