You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able by reading the documentation (and get some other information from other issues) to understand how to implement a majority of pipeline processors.
ie create a pipeline which call ingest-attachment and thus delete the binary content
//Add pipeline for ingest-attachement$pipeline = newPipeline($client);
$pipeline->setId('fileattachment')->setDescription('Extract attachment information');
//Create attachment processor pipeline -> set the field where are file binaries and infinite indexed chars$attachproc = newAttachment('contentBinary');
$attachproc->setIndexedChars(-1);
//Create remove processor pipeline -> remove the file binaries after contentBinary is indexed (reduce weight)$removeprc = newRemove('contentBinary');
//Add processors in the correct order to the pipeline$pipeline->addProcessor($attachproc);
$pipeline->addProcessor($removeprc);
//Create the pipeline$response = $pipeline->create();
@ThibautSF Thanks for the update to the issue. It seems you figured it out and there is #1812 as the follow up issue. Should we close this one or keep it open?
Hi,
I was able by reading the documentation (and get some other information from other issues) to understand how to implement a majority of pipeline processors.
ie create a pipeline which call ingest-attachment and thus delete the binary content
But now I would like to use the "foreach" processor (which I couldn't find like Attachment or Remove in Elastica\Processor)
Like in https://www.elastic.co/guide/en/elasticsearch/plugins/current/ingest-attachment-with-arrays.html
Maybe with
setRawProcessors(array $processors)
?Edit: figures out how to use setRawProcessors method ->
The text was updated successfully, but these errors were encountered: