question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DateAttribute can't mapping

See original GitHub issue

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);

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
russcamcommented, Feb 15, 2019

@799839351 is this issue now resolved? Can we close this?

0reactions
russcamcommented, Apr 8, 2019

Closing this issue as it appears to be resolved by the user. If that’s not the case, feel free to reopen 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I unable to display attribute data in map?
I want to display both these attributes on click on the polygon. My code is returning me latlng. I am new to Leaflet...
Read more >
How to pass data with Html Attributes after mapped Array ...
Random attributes like airport and lat aren't valid to attach to a native HTML element like <li> . However, you should be able...
Read more >
A Complete Guide to Data Attributes
Everything you ever wanted to know about data attributes in HTML, CSS, and JavaScript.
Read more >
Unable to Add Data Attribute for Custom Value with Tag
map (data, function (obj) { call, I can add whatever I want to the object and it's appended as a new property to...
Read more >
Don't use data attributes to find HTML elements with JS
Javascript takes a selector to map to a DOM element, selector being the keyword not class. Selector could be anything from Id, Class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found