Search code examples
c#elasticsearchannotationsnestelastic-stack

ElasticSearch NEST C# - how to set up Number format pattern using annotations?


Is there anyway to set up the Number format by Annotation in POCO class or any other way in C#?

I normally have to go into Kibana and set it manually in Management > Index Patterns > Format as the picture below.

enter image description here

And I was wondering if I couldn't do it by setting a parameter anywhere in my code using NEST. Is there?


Solution

  • Number format is a Kibana only setting that determines how to format a number for visual display; there is no number format in Elasticsearch and hence none in NEST.