I want to have a binary parameter stored in my Elasticsearch server from my C# code. None of the types I tried to use in my index class translates to it.
Is there a way to explicitly instruct my program to store a binary, say from a byte array (could be converted to other types of course)?
Alternatively, is there a way to configure the parameter not to be stored (like with the Json property "stored": false)? As the main problem for me is the copying and indexing of that big parameter (not ideal but sufficient)
Update: I tried to downgrade my NEST version to 1.6.1 to use the attribute
[ElasticProperty(Name = "Data", Type = FieldType.Binary, Store = false)]
public byte[] Data { get; set; }
But when I save a document with that property, it still insists to map a string (I check by running GET mydb/_mapping in my Sense plugin)