I'm using the csv input filter to ingest csv files into Elasticsearch. One of the fields, "CustomFields" contains key/value pairs like this:
CustomFields
"""Author=Jules J. Toner, S.J."";Binding=Paper;""Publication Date=2011"";""Pages=337 pages"";ISBN=9780912422428"
Instead of ingesting CustomFields as a single string field, I'd like to create a new top level field for each key/value pair in this field like this
I used mutate/split filter to get this field to look like this:
"ProductCustomFields" => [
[0] "\"Author=Jules J. Toner, S.J.\"",
[1] "Binding=Paper",
[2] "\"Publication Date=2011\"",
[3] "\"Pages=337 pages\"",
[4] "ISBN=9780912422428"
],
However, what I really want is this:
"ProductCustomFields" => [
[0] "\"Author=Jules J. Toner, S.J.\"",
[1] "Binding=Paper",
[2] "\"Publication Date=2011\"",
[3] "\"Pages=337 pages\"",
[4] "ISBN=9780912422428"
],
"Author" => "Jules J. Toner, S.J.",
"Binding" => "Paper",
"Publication Date" => "2011",
...
Any suggestions?