Skip to content

Guid properties are not mapped, any reason why not? #322

@jakejscott

Description

@jakejscott

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions