I have a csv places column with values like that:
I want to migrate this places to a custom taxonomy and 3 terms (Madrid, Spain, Barcelona) get generated doing it like that:
field_taxonomy_places: - plugin: explode source: places delimiter: '|' - plugin: entity_generate
But actually I only want to create cities (Madrid, Barcelona), but not countries. So I try to take the first value till the delimiter like that:
field_taxonomy_places: - plugin: explode source: places limit: 1 delimiter: '|' - plugin: entity_generate
The problem is that now 2 terms get generated (Madrid|Spain, Barcelona|Spain).