I want to be able to exact match on a Guid. So I am using the following mapping:
[ElasticProperty(OmitNorms = true, Index = FieldIndexOption.not_analyzed)]
public Guid OrganisationId { get; set; }
But NEST omits Guid types (I think). So I have to use a string for the OrganisationId (which is an easy fix) but I couldn't work out what was going on for a while because my primary key field was also a Guid named 'Id' and that was being picked up by NEST and used as the elastic _id field.
Cheers
Jake