Using http://localhost:8983/solr/update/csv?stream.file, is there any
way to map one of the csv fields to one's schema unique id?
e.g. A file with 3 fields (sku, product,price):
http://localhost:8983/solr/update/csv?stream.file=products.csv&stream.contentType=text/plain;charset=utf-8&header=true&separator=%2c&encapsulator=%22&escape=%5c&fieldnames=sku,product,price
I would like to add an additional name:value pair for every line,
mapping the sku field to my schema's id field:
.map={sku.field}:{id}
I would prefer NOT to change the schema by adding a <copyField
source="sku" dest="id"/>.
I read: http://wiki.apache.org/solr/UpdateCSV, but can't quite get it.
Thanks!
Dan