A
A
Apostol632020-08-12 21:46:21
elasticsearch
Apostol63, 2020-08-12 21:46:21

Why is the new pipeline not registered in elasticsearch?

I'm trying to register a new pipeline (this code is old, so I forgot a lot of elastic)

$params = [
          'id' => 'filesNtd',
          'body' => [
              'description' => 'Extract attachment information',
              'processors' => [
                  [
                      'attachment' => [
                          'field' => 'contentdocs',
                          'indexed_chars' => -1
                      ]
                  ]
              ]
          ],
      ];
      $x = $this->obj->ingest()->putPipeline($params);
      print_r($x);


But I get this error
{"error":{"root_cause":[{"type":"parse_exception","reason":"No processor type exists with name [attachment]","processor_type":"attachment"} ],"type":"parse_exception","reason":"No processor type exists with name [attachment]","processor_type":"attachment"},"status":400}

The ingest-attachment plugin is installed.

Please tell me what is wrong and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2020-08-13
@vitaly_il1

The ingest-attachment plugin is installed

Did you check ("elasticsearch-plugin list")?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question