I have a elasticsearch Nest Model class
public class Data
{
public long Id { get; set; }
public string DeviceCode { get; set; }
}
When indexing this document using automap , nest will create two fields for the property DeviceCode - DeviceCode and DeviceCode.keyword. I want to sort based on the DeviceCode.keyword field with case insensitive sorting - Is it possible to acheive this through automap (by applying analyser or filter using attribute mapping in the model class). I want to keep both text and keyword fields in elastic search.
Regards Vineeth