The output was elasticsearch. My expectations was an available_cities field with multiple values
"available_cities": [12, 13, 143, 123....]
However, I only got number 12 in field available_cities.
As I read the doc, I do not understand what the problem is.
convert
Value type is hash
There is no default value for this setting.
Convert a field’s value to a different type, like turning a string to an integer. If the field value is an array, all members will be converted. If the field is a hash, no action will be taken.
I, too, would like to convert a string to an array of integers, and I set up my mutations exactly as you did, and am seeing it converted to only the first element. I don't understand your follow-up: are you saying that you were just seeing a visual artifact? I'm pretty sure I'm not getting the other values: if I search on the other values, I don't find them.
This is the type of detail, that needs to be added to the documentation. Just add a note that a "seperate mutate must be performed AFTER the split operation".
Would save us all a lot of time and sanity...
Chris
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.