That's fair enough. From the Nest point of view it was on creation of the index that I was creating the mapping from the attributes of my c# classes. It doesn't seem to take any notice.
My classes:
private class MyDocument
{
public string Name { get; set; }
public int Age { get; set; }
[ElasticProperty(Type = FieldType.Attachment, TermVector = TermVectorOption.WithPositionsOffsets)]
public Attachment File { get; set; }
}
private class Attachment
{
[ElasticProperty(Analyzer="english", Name ="_content")]
public string Contents { get; set; }
}
@leewadhams Did you happen to figure out what the problem was? I'm running into the same problem where I can't specify an analyzer to use on the "_content" field of the mapper attachment on index creation. I'm also using NEST.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.