Gauge with multiple types
Closed this issue · 5 comments
Hello!
I'm using gauge in some places, for recording sometimes String values, sometimes numbers.
Sadly it's saved in the same json field "value" and then Elasticsearch take the first entry to define if it's a text or a number, and then it will fail at some point (in my case it's detected as String so I just cannot use the number values).
What about renaming the "value" field to something like "value_"?
Best Regards,
Greg
Same here - for a boolean field, hitting this: elastic/elasticsearch#10056
How about adding a suffix for the value type? Like value_double
, value_string
etc.? value_string
should be set to "not_analyzed" then. This should solve the type problems and add greater flexibility.
I created a PR for this: #49
@static-max : yes, that was I meant, dunno why it hasn't display the type placeholder, probably the website formatting...