elasticsearch-net: DateAttribute can't mapping
NEST/Elasticsearch.Net version:
Elasticsearch version:
Description of the problem including expected versus actual behavior:
Steps to reproduce: 1. 2. 3.
Provide ConnectionSettings
(if relevant):
Provide DebugInformation
(if relevant):
Describe the feature: if I use DateAttribute and set up format their will have an error for example [ElasticsearchType(Name = “esmodel”, IdProperty = “id”)] public class ESModel { [Number(Name = “id”)] public int Id { set; get; } [Text(Name = “name”)] public string Name { set; get; } [Date(Name = “birthday”,Format = “yyyy-MM-dd HH:mm:ss”)] public DateTime? Birthday { set; get; } } ESModel es = new ESModel(); es.Id = 1; es.Name = “22”; es.Birthday =DateTime.Now; client.IndexDocument(es);
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (7 by maintainers)
@799839351 is this issue now resolved? Can we close this?