Does ElasticSearch support dynamic fields using ElasticProperty? Does ElasticSearch support dynamic fields using ElasticProperty? elasticsearch elasticsearch

Does ElasticSearch support dynamic fields using ElasticProperty?


It looks like this works...

    [ElasticProperty(Index = FieldIndexOption.NotAnalyzed, Store = true, Type = FieldType.Nested, OmitNorms = true, IncludeInAll = false)]    public Dictionary<string, List<string>> MyLabels { get; set; }

On the ElasticSearch side, it's a Map containing an Array of String. I still have to work on the Search side to come up with a query that will determine the existence of a particular label within a particular mapping, but that should be straightforward (knock on wood).