pdphilip / laravel-elasticsearch

Laravel Elasticsearch: An Elasticsearch implementation of Laravel's Eloquent ORM
MIT License
86 stars 16 forks source link

Add double numeric support to IndexBlueprint #28

Closed danneker closed 4 months ago

danneker commented 4 months ago

This is a simple commit to add double numeric support to the IndexBlueprint.

A double-precision 64-bit IEEE 754 floating point number, restricted to finite values : documentation.

This 'fixes' rounding errors that a numeric float field can have as there is higher precision.

pdphilip commented 4 months ago

Thanks @danneker - added the remaining num types whilst we're at it (Thanks for linking docs).

Tested and happy to merge 👍

danneker commented 4 months ago

Super, thanks! Great idea to add all the num types 😎