eZPlatform Search Binary Extractor

eZ Platform bundle which allows to index the content of binary files

eZ Platform Search Binary Extractor

It was possible to use third-party binaries to index binary files in eZ Publish. This functionality is missing in the latest eZ Platform versions. And this bundle provides it.

Also, it provides an example of a binary extractor for PDF files. Which uses pdftotext third-party binary.

Installation

  1. Require contextualcode/ezplatform-search-binary-extractor via composer:
    composer require contextualcode/ezplatform-search-binary-extractor
  2. Activate the bundle in config/bundles.php:
    return [
       ...
       ContextualCode\EzPlatformSearchBinaryExtractorBundle\EzPlatformSearchBinaryExtractorBundle::class => ['all' => true],
    ];

Usage

First of all, please double check if "Searchable" checkbox is checked for binary file field types that need to be searchable.

After the bundle is installed, all the PDF files content will be indexed. And you would need to rebuild the search index by running:

php bin/console ezplatform:reindex

Also it is possible to build your own custom binary extractors. You just need to follow a few simple steps:

  1. Create a new service which implements BinaryExtractor. Please use BinaryExtractor\Pdf as an example.

  2. Tag your service with ezplatform.field_type.ezbinaryfile.binary_extractor tag.

Created by:

Categories:

Downloads:

10107

Stars:

0

Forks:

2

Created:

Updated: