Hello Dears,
I am getting below error, while trying to ingest pdf file:
“No processor type exists with name [attachment]"
$params = [
'id' => 'attachment',
'body' => [
'description' => 'Extract attachment information',
'processors' => [
[
'attachment' => [
'field' => 'content',
'indexed_chars' => -1
]
]
]
]
];
return $client->ingest()->putPipeline($params);
$params = [
'index' => $name,
// 'type' => 'type',
// 'id' => 'document_id',
'pipeline' => 'attachment',
'body' => [
'content' => base64_encode(file_get_contents($file))
]
];
return $client->index($params);
please your support, thank you very much.