elastic-rs / elastic

An Elasticsearch REST API client for Rust
Apache License 2.0
252 stars 40 forks source link

Add support for unsigned numbers #387

Open DevQps opened 5 years ago

DevQps commented 5 years ago

Description

Currently types such as u32 or u16 cannot be automatically mapped. It would be nice if these numbers could be converted to a larger signed value on the fly.

mwilliammyers commented 5 years ago

I have wanted that too. That being said, Elasticsearch doesn't support unsigned integers. @KodrAus, I suppose that is why they haven't been mapped?

Maybe we could do some trickery to map them?