18F / open-data-maker

make it easy to turn a lot of potentially large csv files into easily accessible open data
Other
200 stars 135 forks source link

Support multivalue fields #317

Open kynetiv opened 8 years ago

kynetiv commented 8 years ago

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