I'm having an issue with `float` field type and `a...
# community-help
e
I'm having an issue with
float
field type and
auto schema detection
. It seems that if the first document (that decides the field type with auto schema detection) has a float value with no decimals, it will set the field type to
int64
instead. Is this correct and if so is there a solution? I'm using PHP (Laravel) to send the data to Typesense.
j
Yeah this is expected. Field type is determined by the value sent in the first doc.
You would have to explicitly set the field type to float instead of using schema detection for just that field
e
ok, thank you