Float numbers with comma as a decimal

(Humartinez) #1

Hi there,
I've got an issue with elastic while ingesting some date.

{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse field [costo_hora_empleado] of type [integer]"}],"type":"mapper_parsing_exception","reason":"failed to parse field [cost] of type [integer]","caused_by":{"type":"number_format_exception","reason":"For input string: "622,5""}},"status":400}

I guess elastic is expecting a number like 622.5 instead of 622,5. Is there a posibility to change the float format to accept numbers with comma as a decimal indicator?

Best regards

(Igor Motov) #2

I think the simplest solution here might be to replace these commas with dots using the ingest node.