# Set processor in NEST

**URL:** <https://discuss.elastic.co/t/set-processor-in-nest/101875>\
**Category:** Elasticsearch\
**Created:** [September 26, 2017, 3:03pm UTC](https://discuss.elastic.co/t/set-processor-in-nest/101875 "2017-09-26T15:03:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESCoder](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@ESCoder](https://discuss.elastic.co/u/ESCoder)\
**Post date:** [September 26, 2017, 3:03pm UTC](https://discuss.elastic.co/t/set-processor-in-nest/101875/1 "2017-09-26T15:03:57Z")

</div>

Hi,

I'm using ES 5.1.2 and NEST 5.x, I'm trying add an ingest pipeline similar to the example given below.

> [@Implementing Ingest Attachment Processor Plugin](https://discuss.elastic.co/t/implementing-ingest-attachment-processor-plugin/52300/25):
>
> So, my issue has been solved. Thanks to @shanec for the help and mentioning Kibana. For the sake of brevity, my working solution is below. I'm sure this can be optimized, but for now it gets the job done. DELETE /myindex PUT /myindex { "mappings": { "document": { "properties": { "thedata": { "type": "text" }, "title": { "type": "text" }, "location": { "type": "text" } } } } } DELETE \_ingest/pipeline/attachment PUT \_ingest/pipeline/attachment …

In my implementation I have a Base64DocumentContent field which has the base64 string. I want the extracted "attachment.content" to be copied to "Content" field.

I have the following NEST query

```
_elasticClient.PutPipeline(_documentAttachmentPipeline, p => p
				  .Description("Document attachment pipeline")
				  .Processors(pr => pr
					  .Attachment<T>(doc => doc
						  .Field(f => f.Base64DocumentContent))
					  .Set<T>(set => set
						  .Field(f => f.Content).Value("attachment.content"))));

```

Instead of setting the attachment.content value it is assigning the string "attachment.content". How do I set "attachment.content" extracted value to Content field.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 24, 2017, 3:16pm UTC](https://discuss.elastic.co/t/set-processor-in-nest/101875/2 "2017-10-24T15:16:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
