Is it possible to leverage the NEST auto-mapping features to obtain Nest Property and Type objects without actually writing them into the elastic index via PUT Mapping and Create Index APIs?
For example, I'd like to auto-map this CLR class Company:
public class Company
{
public string Name { get; set; }
}
and store the elastic mappings into variables like these:
Nest.TypeMapping typeCo = null; // for the mapped Company type
Nest.IProperty propCoName = null; // for the mapped Company Name property
but not to write the Company mapping to the index.
I could write to a temp index as a workaround but I suspect this isn't necessary.
Using elasticsearch 5.x and Nest 5.