This PR introduces a new field type of multivalue to allow for csv columns that have multiple values in one field. By specifying in the data.yaml the type: 'multivalue', the importer will parse a string value with a comma separated list (default) into an array and save the field. You may also provide a optional separator key to specify a different delimiter other than the default comma. This is modeld after the elasticsearch multivalue field and adds a position_offset_gap to each field value to avoid slop results.
Adding multi-value field support should help prepare for: 18F/college-choice#187
This PR introduces a new field type of
multivalue
to allow for csv columns that have multiple values in one field. By specifying in the data.yaml thetype: 'multivalue'
, the importer will parse a string value with a comma separated list (default) into an array and save the field. You may also provide a optionalseparator
key to specify a different delimiter other than the default comma. This is modeld after the elasticsearch multivalue field and adds aposition_offset_gap
to each field value to avoid slop results.Adding multi-value field support should help prepare for: 18F/college-choice#187