Hi ,
I first defined a pipeline as follows -
curl -X PUT "node1:9200/_ingest/pipeline/convertpipeline" -H 'Content-Type: application/json' -d' { "description": "convert type pipeline", "processors" : [ { "convert": { "field" : "number", "type": "integer" } } ] } '
Then i tested using the following -
curl -X PUT "node1:9200/myindex/doc/1?pipeline=convertpipeline" -H 'Content-Type: application/json' -d'
{
"number" : "15.88"
}
'
and
` curl -X PUT "node1:9200/myindex/doc/1?pipeline=convertpipeline" -H 'Content-Type: application/json' -d'
{
"number" : 15.88
}
'`
It failed to covert float to integer .. ?? Any help on how and why ??
Thanks