elasticsearch-net icon indicating copy to clipboard operation
elasticsearch-net copied to clipboard

remove_binary Option Missing for Attachment

Open SoccerField24x7 opened this issue 9 months ago • 1 comments

I am trying to create an ingest pipeline for attachments and there doesn't appear to be a way to set the remove_binary option. I would like to do something like:

var ingestPipelineResult = await client.Ingest.PutPipelineAsync("attachment", p => 
    p.Processors(x =>
    {
        x.Attachment<Document>(a =>
        {
            a.Field(f => f.Data);
            a.IndexedChars(-1);
            a.RemoveBinary(true); // this is what I want; not a real thing
        });
    }));

I suppose I could re-put the document after removing the data property, but that seems like overkill when the functionality exists in Elasticsearch. I could also try my hand at creating a raw request using something like HttpTransportClient, but I haven't seen any examples of how this would work so it will take some trial and error.

SoccerField24x7 avatar Oct 04 '23 23:10 SoccerField24x7

Hi @SoccerField24x7, it seems like this field is missing from the specification and should be added there. I'll take care!

flobernd avatar Oct 05 '23 07:10 flobernd

This is fixed in 8.13.x.

flobernd avatar Apr 18 '24 09:04 flobernd